WordPress.org

Make WordPress Core

Changeset 12230


Ignore:
Timestamp:
11/19/2009 10:47:11 PM (9 years ago)
Author:
ryan
Message:

Don't return extra permastructs if pretty permalinks not turned on. Props scribu. fixes #11061

File:
1 edited

Legend:

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

    r12061 r12230  
    10611061     */
    10621062    function get_extra_permastruct($name) {
     1063        if ( empty($this->permalink_structure) )
     1064            return false;
    10631065        if ( isset($this->extra_permastructs[$name]) )
    10641066            return $this->extra_permastructs[$name];
Note: See TracChangeset for help on using the changeset viewer.