Changeset 56109 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 06/29/2023 01:28:49 PM (15 months ago)
- File:
-
- 1 edited
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.