Make WordPress Core

Ticket #60675: patch.patch

File patch.patch, 974 bytes (added by Tkama, 4 months ago)
  • wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/post.php b/wp-includes/post.php
    a b  
    69706970                return;
    69716971        }
    69726972
     6973        /**
     6974         * Allowes to stop {@see wp_check_for_changed_slugs()} function functionality.
     6975         *
     6976         * @since 6.4.3
     6977         *
     6978         * @param bool    $is_skip      If true the {@see wp_check_for_changed_slugs()} will be stopped.
     6979         * @param WP_Post $post         The post object.
     6980         * @param WP_Post $post_before  The previous post object.
     6981         */
     6982        if ( apply_filters( 'skip_wp_check_for_changed_slugs', false, $post, $post_before ) ) {
     6983                return;
     6984        }
     6985
    69736986        $old_slugs = (array) get_post_meta( $post_id, '_wp_old_slug' );
    69746987
    69756988        // If we haven't added this old slug before, add it now.