rebase on oct-10-2023
This commit is contained in:
@@ -55,8 +55,8 @@ if ( isset( $_POST['deletepost'] ) ) {
|
||||
|
||||
$sendback = wp_get_referer();
|
||||
if ( ! $sendback ||
|
||||
false !== strpos( $sendback, 'post.php' ) ||
|
||||
false !== strpos( $sendback, 'post-new.php' ) ) {
|
||||
str_contains( $sendback, 'post.php' ) ||
|
||||
str_contains( $sendback, 'post-new.php' ) ) {
|
||||
if ( 'attachment' === $post_type ) {
|
||||
$sendback = admin_url( 'upload.php' );
|
||||
} else {
|
||||
@@ -97,7 +97,7 @@ switch ( $action ) {
|
||||
$_POST['ping_status'] = get_default_comment_status( $post->post_type, 'pingback' );
|
||||
|
||||
// Wrap Quick Draft content in the Paragraph block.
|
||||
if ( false === strpos( $_POST['content'], '<!-- wp:paragraph -->' ) ) {
|
||||
if ( ! str_contains( $_POST['content'], '<!-- wp:paragraph -->' ) ) {
|
||||
$_POST['content'] = sprintf(
|
||||
'<!-- wp:paragraph -->%s<!-- /wp:paragraph -->',
|
||||
str_replace( array( "\r\n", "\r", "\n" ), '<br />', $_POST['content'] )
|
||||
|
||||
Reference in New Issue
Block a user