Changeset 31308
- Timestamp:
- 01/30/2015 07:28:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r31307 r31308 946 946 foreach ( $taxonomy_names as $taxonomy_name ) { 947 947 948 $taxonomy = get_taxonomy( $taxonomy_name ); 949 950 $show_in_quick_edit = $taxonomy->show_in_quick_edit; 951 948 952 /** 949 953 * Filters whether the current taxonomy should be shown in the Quick Edit panel. … … 951 955 * @since 4.2.0 952 956 * 953 * @param bool $show Whether to show the current taxonomy in Quick Edit. 954 * Default: true. 955 * @param string $taxonomy_name Taxonomy name. 956 * @param string $post_type Post type of current Quick Edit post. 957 * @param bool $show_in_quick_edit Whether to show the current taxonomy in Quick Edit. 958 * @param string $taxonomy_name Taxonomy name. 959 * @param string $post_type Post type of current Quick Edit post. 957 960 */ 958 if ( ! apply_filters( 'quick_edit_show_taxonomy', true, $taxonomy_name, $screen->post_type ) ) { 959 continue; 960 } 961 962 $taxonomy = get_taxonomy( $taxonomy_name ); 963 964 if ( ! $taxonomy->show_in_quick_edit ) { 961 if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) { 965 962 continue; 966 963 }
Note: See TracChangeset
for help on using the changeset viewer.