PluginProbe
Polylang / 2.6.3
Polylang v2.6.3
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | admin/admin-filters-post.php +2 -5 2.7.42.6.3 View file →
@@ -46,9 +46,8 @@
46 46
47 47 // Hierarchical taxonomies
48 48 if ( 'edit' == $screen->base && $taxonomies = get_object_taxonomies( $screen->post_type, 'object' ) ) {
49 49 // Get translated hierarchical taxonomies
50 - $hierarchical_taxonomies = array();
51 50 foreach ( $taxonomies as $taxonomy ) {
52 51 if ( $taxonomy->hierarchical && $taxonomy->show_in_quick_edit && $this->model->is_translated_taxonomy( $taxonomy->name ) ) {
53 52 $hierarchical_taxonomies[] = $taxonomy->name;
54 53 }
@@ -54,10 +53,9 @@
54 53 }
55 54 }
56 55
57 56 if ( ! empty( $hierarchical_taxonomies ) ) {
58 - $terms = get_terms( $hierarchical_taxonomies, array( 'get' => 'all' ) );
59 - $term_languages = array();
57 + $terms = get_terms( $hierarchical_taxonomies, array( 'get' => 'all' ) );
60 58
61 59 foreach ( $terms as $term ) {
62 60 if ( $lang = $this->model->term->get_language( $term->term_id ) ) {
63 61 $term_languages[ $lang->slug ][ $term->taxonomy ][] = $term->term_id;
@@ -72,10 +70,9 @@
72 70 }
73 71
74 72 // Hierarchical post types
75 73 if ( 'edit' == $screen->base && is_post_type_hierarchical( $screen->post_type ) ) {
76 - $pages = get_pages();
77 - $page_languages = array();
74 + $pages = get_pages();
78 75
79 76 foreach ( $pages as $page ) {
80 77 if ( $lang = $this->model->post->get_language( $page->ID ) ) {
81 78 $page_languages[ $lang->slug ][] = $page->ID;