WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/13/2016 03:50:37 AM (5 years ago)
Author:
boonebgorges
Message:

Introduce publicly_queryable taxonomy argument.

Taxonomies registered as publicly_queryable can be queried as taxonomy
archives.

If not provided explicitly, the value of publicly_queryable is inherited
from public.

Props Chouby.
Fixes #34491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r36316 r36525  
    363363
    364364    foreach ( get_taxonomies( array() , 'objects' ) as $t ) {
    365         if ( $t->public && ! empty( $t->query_var ) )
     365        if ( $t->publicly_queryable && ! empty( $t->query_var ) )
    366366            $GLOBALS['wp']->add_query_var( $t->query_var );
    367367    }
Note: See TracChangeset for help on using the changeset viewer.