Ticket #16092: 16092.use-new-args.diff
| File 16092.use-new-args.diff, 1.3 KB (added by , 14 years ago) |
|---|
-
wp-includes/post.php
1027 1027 $wp_rewrite->add_rule( "{$archive_slug}/{$wp_rewrite->pagination_base}/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); 1028 1028 } 1029 1029 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 ); 1031 1031 } 1032 1032 1033 1033 if ( $args->register_meta_box_cb ) -
wp-includes/taxonomy.php
344 344 $tag = '([^/]+)'; 345 345 346 346 $wp_rewrite->add_rewrite_tag("%$taxonomy%", $tag, $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 347 $wp_rewrite->add_permastruct( $taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front'], $args['rewrite']['ep_mask'] );347 $wp_rewrite->add_permastruct( $taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite'] ); 348 348 } 349 349 350 350 if ( is_null($args['show_ui']) )