@@ -2226,7 +2226,7 @@ |
||
| 2226 | 2226 | * |
| 2227 | 2227 | * @since 2.5.0 |
| 2228 | 2228 | * |
| 2229 | - * @return array CSS classnames. |
|
| 2229 | + * @return string[] CSS classnames. |
|
| 2230 | 2230 | */ |
| 2231 | 2231 | public function get_table_classes() { |
| 2232 | 2232 | return array( 'widefat', 'fixed' ); |
@@ -1081,7 +1081,8 @@ discard block |
||
| 1081 | 1081 | if ( ! $automatic ) { |
| 1082 | 1082 | // Make sure message doesn't display again if bulk activation is performed |
| 1083 | 1083 | // immediately after a single activation. |
| 1084 | - if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. |
|
| 1084 | + if ( ! isset( $_POST['action'] ) ) { |
|
| 1085 | +// WPCS: CSRF OK. |
|
| 1085 | 1086 | echo '<div id="message" class="updated"><p>', esc_html( $this->strings['activated_successfully'] ), ' <strong>', esc_html( $this->plugins[ $slug ]['name'] ), '.</strong></p></div>'; |
| 1086 | 1087 | } |
| 1087 | 1088 | } else { |
@@ -1102,7 +1103,8 @@ discard block |
||
| 1102 | 1103 | if ( ! $automatic ) { |
| 1103 | 1104 | // Make sure message doesn't display again if bulk activation is performed |
| 1104 | 1105 | // immediately after a single activation. |
| 1105 | - if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. |
|
| 1106 | + if ( ! isset( $_POST['action'] ) ) { |
|
| 1107 | +// WPCS: CSRF OK. |
|
| 1106 | 1108 | echo '<div id="message" class="error"><p>', |
| 1107 | 1109 | sprintf( |
| 1108 | 1110 | esc_html( $this->strings['plugin_needs_higher_version'] ), |
@@ -1154,7 +1156,7 @@ discard block |
||
| 1154 | 1156 | continue; |
| 1155 | 1157 | } |
| 1156 | 1158 | |
| 1157 | - if(false === $plugin['has_notices']){ |
|
| 1159 | + if(false === $plugin['has_notices']) { |
|
| 1158 | 1160 | continue; |
| 1159 | 1161 | } |
| 1160 | 1162 | |
@@ -1768,10 +1770,12 @@ discard block |
||
| 1768 | 1770 | if ( 'update-core' === $screen->base ) { |
| 1769 | 1771 | // Core update screen. |
| 1770 | 1772 | return true; |
| 1771 | - } elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) { // WPCS: CSRF ok. |
|
| 1773 | + } elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) { |
|
| 1774 | +// WPCS: CSRF ok. |
|
| 1772 | 1775 | // Plugins bulk update screen. |
| 1773 | 1776 | return true; |
| 1774 | - } elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) { // WPCS: CSRF ok. |
|
| 1777 | + } elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) { |
|
| 1778 | +// WPCS: CSRF ok. |
|
| 1775 | 1779 | // Individual updates (ajax call). |
| 1776 | 1780 | return true; |
| 1777 | 1781 | } |