Ticket #44466: 44466-3.diff
File 44466-3.diff, 1.8 KB (added by , 6 years ago) |
---|
-
wp-admin/includes/class-wp-terms-list-table.php
470 470 __( 'Delete' ) 471 471 ); 472 472 } 473 if ( $tax->public) {473 if ( is_taxonomy_viewable( $tax ) ) { 474 474 $actions['view'] = sprintf( 475 475 '<a href="%s" aria-label="%s">%s</a>', 476 476 get_term_link( $tag ), -
wp-includes/admin-bar.php
728 728 } elseif ( 'term' == $current_screen->base 729 729 && isset( $tag ) && is_object( $tag ) && ! is_wp_error( $tag ) 730 730 && ( $tax = get_taxonomy( $tag->taxonomy ) ) 731 && $tax->public) {731 && is_taxonomy_viewable( $tax ) ) { 732 732 $wp_admin_bar->add_menu( 733 733 array( 734 734 'id' => 'view', -
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
224 224 if ( in_array( 'visibility', $fields, true ) ) { 225 225 $data['visibility'] = array( 226 226 'public' => (bool) $taxonomy->public, 227 'publicly_queryable' => (bool) $taxonomy->publicly_queryable,227 'publicly_queryable' => is_taxonomy_viewable( $taxonomy ), 228 228 'show_admin_column' => (bool) $taxonomy->show_admin_column, 229 229 'show_in_nav_menus' => (bool) $taxonomy->show_in_nav_menus, 230 230 'show_in_quick_edit' => (bool) $taxonomy->show_in_quick_edit,