Changeset 46497 for branches/4.5/tests/phpunit/tests/query/vars.php
- Timestamp:
- 10/14/2019 07:06:04 PM (6 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/query/vars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/trunk merged: 46474-46478,46483,46485
- Property svn:mergeinfo changed
-
branches/4.5/tests/phpunit/tests/query/vars.php
r36048 r46497 17 17 do_action( 'init' ); 18 18 19 $this->assertEquals( array( 19 $this->assertEquals( 20 array( 20 21 21 // Static public query vars: 22 'm', 23 'p', 24 'posts', 25 'w', 26 'cat', 27 'withcomments', 28 'withoutcomments', 29 's', 30 'search', 31 'exact', 32 'sentence', 33 'calendar', 34 'page', 35 'paged', 36 'more', 37 'tb', 38 'pb', 39 'author', 40 'order', 41 'orderby', 42 'year', 43 'monthnum', 44 'day', 45 'hour', 46 'minute', 47 'second', 48 'name', 49 'category_name', 50 'tag', 51 'feed', 52 'author_name', 53 'static', 54 'pagename', 55 'page_id', 56 'error', 57 'attachment', 58 'attachment_id', 59 'subpost', 60 'subpost_id', 61 'preview', 62 'robots', 63 'taxonomy', 64 'term', 65 'cpage', 66 'post_type', 67 'embed', 22 // Static public query vars: 23 'm', 24 'p', 25 'posts', 26 'w', 27 'cat', 28 'withcomments', 29 'withoutcomments', 30 's', 31 'search', 32 'exact', 33 'sentence', 34 'calendar', 35 'page', 36 'paged', 37 'more', 38 'tb', 39 'pb', 40 'author', 41 'order', 42 'orderby', 43 'year', 44 'monthnum', 45 'day', 46 'hour', 47 'minute', 48 'second', 49 'name', 50 'category_name', 51 'tag', 52 'feed', 53 'author_name', 54 'pagename', 55 'page_id', 56 'error', 57 'attachment', 58 'attachment_id', 59 'subpost', 60 'subpost_id', 61 'preview', 62 'robots', 63 'taxonomy', 64 'term', 65 'cpage', 66 'post_type', 67 'embed', 68 68 69 // Dynamically added public query vars:70 'post_format',71 'rest_route',69 // Dynamically added public query vars: 70 'post_format', 71 'rest_route', 72 72 73 ), $wp->public_query_vars, 'Care should be taken when introducing new public query vars. See https://core.trac.wordpress.org/ticket/35115' ); 73 ), 74 $wp->public_query_vars, 75 'Care should be taken when introducing new public query vars. See https://core.trac.wordpress.org/ticket/35115' 76 ); 74 77 } 75 78
Note: See TracChangeset
for help on using the changeset viewer.