PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | lib/experimental/rest-api-overrides.php +1 -1 23.6.2 → 22.7.0 View file →
@@ -31,9 +31,9 @@
31 31
32 32 foreach ( $post_types as $post_type ) {
33 33 $supports_editor = post_type_supports( $post_type->name, 'editor' );
34 34 $supports_title = post_type_supports( $post_type->name, 'title' );
35 - $is_wp_core_system = str_starts_with( $post_type->name, 'wp_' );
35 + $is_wp_core_system = strpos( $post_type->name, 'wp_' ) === 0;
36 36 $is_attachment = 'attachment' === $post_type->name;
37 37
38 38 // Only add auto-draft to content post types:
39 39 // - Must support either editor or title (content editing capabilities).