PluginProbe
Polylang / 2.5.2
Polylang v2.5.2
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 | settings/table-settings.php +13 -10 2.72.5.2 View file →
@@ -58,9 +58,9 @@
58 58 printf(
59 59 '<tr class="plugin-update-tr">
60 60 <td colspan="3" class="plugin-update colspanchange">%s</td>
61 61 </tr>',
62 - sprintf( '<div class="update-message notice inline notice-warning notice-alt"><p>%s</p></div>', $message ) // phpcs:ignore WordPress.Security.EscapeOutput
62 + sprintf( '<div class="update-message notice inline notice-warning notice-alt"><p>%s</p></div>', $message )
63 63 );
64 64 }
65 65
66 66 // The settings if there are
@@ -77,10 +77,10 @@
77 77 </td>
78 78 </tr>',
79 79 esc_attr( $item->module ),
80 80 esc_html( $item->title ),
81 - $form, // phpcs:ignore
82 - implode( $item->get_buttons() ) // phpcs:ignore
81 + $form,
82 + implode( $item->get_buttons() )
83 83 );
84 84 }
85 85 }
86 86
@@ -91,25 +91,28 @@
91 91 *
92 92 * @param object $item The current item
93 93 */
94 94 protected function single_row_columns( $item ) {
95 - $column_info = $this->get_column_info();
96 - $columns = $column_info[0];
97 - $primary = $column_info[3];
95 + list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();
98 96
99 - foreach ( array_keys( $columns ) as $column_name ) {
97 + foreach ( $columns as $column_name => $column_display_name ) {
100 98 $classes = "$column_name column-$column_name";
101 99 if ( $primary === $column_name ) {
102 100 $classes .= ' column-primary';
103 101 }
104 102
103 + if ( in_array( $column_name, $hidden ) ) {
104 + $classes .= ' hidden';
105 + }
106 +
105 107 if ( 'cb' == $column_name ) {
106 108 echo '<th scope="row" class="check-column">';
107 - echo $this->column_cb( $item ); // phpcs:ignore WordPress.Security.EscapeOutput
109 + echo $this->column_cb( $item );
108 110 echo '</th>';
109 - } else {
111 + }
112 + else {
110 113 printf( '<td class="%s">', esc_attr( $classes ) );
111 - echo $this->column_default( $item, $column_name ); // phpcs:ignore WordPress.Security.EscapeOutput
114 + echo $this->column_default( $item, $column_name );
112 115 echo '</td>';
113 116 }
114 117 }
115 118 }