mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Make url_to_postid() work for custom post type URLs. Use get_post_types() and get_taxonomies() instead of directly accessing globals. Adds unit test.
Props faishal, for the globals fix. Fixes #19744. git-svn-id: https://develop.svn.wordpress.org/trunk@25659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1735,7 +1735,7 @@ class WP_Query {
|
||||
);
|
||||
}
|
||||
|
||||
foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
|
||||
foreach ( get_taxonomies( array() , 'objects' ) as $taxonomy => $t ) {
|
||||
if ( 'post_tag' == $taxonomy )
|
||||
continue; // Handled further down in the $q['tag'] block
|
||||
|
||||
|
||||
Reference in New Issue
Block a user