Changeset 56109
- Timestamp:
- 06/29/2023 01:28:49 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r56064 r56109 ย 1377 1377 } 1378 1378 if ( 1379 ย isset( $block->context['query']['author'] ) && 1380 ย (int) $block->context['query']['author'] > 0 ย 1379 isset( $block->context['query']['author'] ) 1381 1380 ) { 1382 ย $query['author'] = (int) $block->context['query']['author']; ย 1381 if ( is_array( $block->context['query']['author'] ) ) { ย 1382 $query['author__in'] = array_filter( array_map( 'intval', $block->context['query']['author'] ) ); ย 1383 } elseif ( is_string( $block->context['query']['author'] ) ) { ย 1384 $query['author__in'] = array_filter( array_map( 'intval', explode( ',', $block->context['query']['author'] ) ) ); ย 1385 } elseif ( is_int( $block->context['query']['author'] ) && $block->context['query']['author'] > 0 ) { ย 1386 $query['author'] = $block->context['query']['author']; ย 1387 } 1383 1388 } 1384 1389 if ( ! empty( $block->context['query']['search'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.