WordPress.org

Make WordPress Core

Ticket #43375: 43375.diff

File 43375.diff, 655 bytes (added by dlh, 2 years ago)
  • src/wp-includes/query.php

    diff --git src/wp-includes/query.php src/wp-includes/query.php
    index 693019f659..5c61004c09 100644
    function wp_old_slug_redirect() { 
    982982                 *
    983983                 * @since 4.9.3
    984984                 *
    985                  * @param string $id The redirect post ID.
     985                 * @param int $id The redirect post ID.
    986986                 */
    987987                $id = apply_filters( 'old_slug_redirect_post_id', $id );
    988988
    function _find_post_by_old_slug( $post_type ) { 
    10641064 * @param string $post_type The current post type based on the query vars.
    10651065 * @return int $id The Post ID.
    10661066 */
    1067 
    10681067function _find_post_by_old_date( $post_type ) {
    10691068        global $wpdb;
    10701069