WordPress.org

Make WordPress Core

Changeset 19737


Ignore:
Timestamp:
01/23/2012 07:03:56 PM (6 years ago)
Author:
duck_
Message:

Set $paged and $walk_dirs to false in calls to WP_Rewrite::generate_rewrite_rules() for posts/pages. See #19876.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r19736 r19737  
    817817        $this->add_rewrite_tag( '%pagename%', '(.?.+?)', 'pagename=' );
    818818
    819         return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES );
     819        return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES, false, true, false, false );
    820820    }
    821821
     
    14901490
    14911491        // Post
    1492         $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK);
     1492        $post_rewrite = $this->generate_rewrite_rules( $this->permalink_structure, EP_PERMALINK, false, true, false, false );
    14931493        $post_rewrite = apply_filters('post_rewrite_rules', $post_rewrite);
    14941494
Note: See TracChangeset for help on using the changeset viewer.