Changeset 54793
- Timestamp:
- 11/10/2022 04:23:20 PM (21 months ago)
- Location:
- branches/6.1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/canonical.php
r53043 r54793 332 332 333 333 foreach ( $wp_query->tax_query->queried_terms as $tax_query ) { 334 $term_count += count( $tax_query['terms'] ); 334 if ( isset( $tax_query['terms'] ) && is_countable( $tax_query['terms'] ) ) { 335 $term_count += count( $tax_query['terms'] ); 336 } 335 337 } 336 338 -
branches/6.1/tests/phpunit/tests/canonical.php
r53043 r54793 376 376 delete_option( 'page_on_front' ); 377 377 } 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 378 405 }
Note: See TracChangeset
for help on using the changeset viewer.