Changeset 57232
- Timestamp:
- 12/29/2023 01:52:57 PM (16 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r56738 r57232 317 317 } 318 318 } 319 } elseif ( is_author() && ! empty( $_GET['author'] ) && preg_match( '|^[0-9]+$|', $_GET['author'] ) ) { 319 } elseif ( is_author() && ! empty( $_GET['author'] ) 320 && is_string( $_GET['author'] ) && preg_match( '|^[0-9]+$|', $_GET['author'] ) 321 ) { 320 322 $author = get_userdata( get_query_var( 'author' ) ); 321 323 -
trunk/tests/phpunit/tests/canonical.php
r56657 r57232 207 207 // array( '/?author=%d&year=2008', '/2008/?author=3'), 208 208 // array( '/author/canonical-author/?year=2008', '/2008/?author=3'), // Either or, see previous testcase. 209 array( '/author/canonical-author/?author[1]=hello', '/author/canonical-author/?author[1]=hello', 60059 ), 209 210 210 211 // Feeds.
Note: See TracChangeset
for help on using the changeset viewer.