Make WordPress Core


Ignore:
Timestamp:
07/03/2018 10:28:39 AM (8 years ago)
Author:
flixos90
Message:

Taxonomy: Introduce is_taxonomy_viewable().

This utility function allows for easy detection whether terms for a taxonomy are considered publicly viewable.

Props andizer.
Fixes #44466.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r42871 r43386  
    471471                        );
    472472                }
    473                 if ( $tax->public ) {
     473                if ( is_taxonomy_viewable( $tax ) ) {
    474474                        $actions['view'] = sprintf(
    475475                                '<a href="%s" aria-label="%s">%s</a>',
Note: See TracChangeset for help on using the changeset viewer.