Ticket #34988: 34988.patch
File 34988.patch, 1.3 KB (added by , 9 years ago) |
---|
-
wp-admin/includes/class-wp-screen.php
330 330 if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) 331 331 $post_type = $_REQUEST['post_type']; 332 332 } 333 // Checks and sets edit-tags action, it will look for it in the request 334 if ( isset( $_REQUEST[ 'action' ] ) && $_REQUEST[ 'action' ] == 'edit' ) { 335 $action = 'edit'; 336 } 333 337 334 338 $id = 'edit-' . $taxonomy; 335 339 break; … … 910 914 return $this->_show_screen_options; 911 915 912 916 $columns = get_column_headers( $this ); 913 917 918 //Get Current screen 919 $current_screen = get_current_screen(); 920 914 921 $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); 915 922 916 923 switch ( $this->base ) { … … 945 952 $show_screen = true; 946 953 947 954 /** 955 * Check if current screens is taxnomay and is edit page with screen action. 956 */ 957 if ( !empty( $current_screen->taxonomy ) && !empty( $current_screen->action ) && $current_screen->action == 'edit' ) { 958 $show_screen = false; 959 } 960 /** 948 961 * Filter whether to show the Screen Options tab. 949 962 * 950 963 * @since 3.2.0