Changeset 55988 for trunk/src/wp-admin/post.php
- Timestamp:
- 06/22/2023 02:34:56 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r52978 r55988 56 56 $sendback = wp_get_referer(); 57 57 if ( ! $sendback || 58 false !== strpos( $sendback, 'post.php' ) ||59 false !== strpos( $sendback, 'post-new.php' ) ) {58 str_contains( $sendback, 'post.php' ) || 59 str_contains( $sendback, 'post-new.php' ) ) { 60 60 if ( 'attachment' === $post_type ) { 61 61 $sendback = admin_url( 'upload.php' ); … … 98 98 99 99 // Wrap Quick Draft content in the Paragraph block. 100 if ( false === strpos( $_POST['content'], '<!-- wp:paragraph -->' ) ) {100 if ( ! str_contains( $_POST['content'], '<!-- wp:paragraph -->' ) ) { 101 101 $_POST['content'] = sprintf( 102 102 '<!-- wp:paragraph -->%s<!-- /wp:paragraph -->',
Note: See TracChangeset
for help on using the changeset viewer.