Make WordPress Core


Ignore:
Timestamp:
01/28/2012 09:00:59 PM (12 years ago)
Author:
duck_
Message:

Use new $args parameter for (WP_Rewrite::)add_permastruct(). Fixes #16092.

Use array_intersect_key() to keep WP_Rewrite::$extra_permastructs free of unnecessary/unknown keys + values.

File:
1 edited

Legend:

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

    r19744 r19779  
    10281028        }
    10291029
    1030         $wp_rewrite->add_permastruct( $post_type, "{$args->rewrite['slug']}/%$post_type%", $args->rewrite['with_front'], $args->rewrite['ep_mask'] );
     1030        $wp_rewrite->add_permastruct( $post_type, "{$args->rewrite['slug']}/%$post_type%", $args->rewrite );
    10311031    }
    10321032
Note: See TracChangeset for help on using the changeset viewer.