@@ -1892,7 +1892,7 @@ discard block |
||
| 1892 | 1892 | * |
| 1893 | 1893 | * @since 2.4.0 |
| 1894 | 1894 | * |
| 1895 | - * @return object The TGM_Plugin_Activation object. |
|
| 1895 | + * @return TGM_Plugin_Activation The TGM_Plugin_Activation object. |
|
| 1896 | 1896 | */ |
| 1897 | 1897 | public static function get_instance() { |
| 1898 | 1898 | if ( ! isset( self::$instance ) && ! ( self::$instance instanceof self ) ) { |
@@ -2049,7 +2049,7 @@ discard block |
||
| 2049 | 2049 | * |
| 2050 | 2050 | * @since 2.5.0 |
| 2051 | 2051 | * |
| 2052 | - * @return array CSS classnames. |
|
| 2052 | + * @return string[] CSS classnames. |
|
| 2053 | 2053 | */ |
| 2054 | 2054 | public function get_table_classes() { |
| 2055 | 2055 | return array( 'widefat', 'fixed' ); |
@@ -971,7 +971,8 @@ discard block |
||
| 971 | 971 | if ( ! $automatic ) { |
| 972 | 972 | // Make sure message doesn't display again if bulk activation is performed |
| 973 | 973 | // immediately after a single activation. |
| 974 | - if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. |
|
| 974 | + if ( ! isset( $_POST['action'] ) ) { |
|
| 975 | +// WPCS: CSRF OK. |
|
| 975 | 976 | echo '<div id="message" class="updated"><p>', esc_html( $this->strings['activated_successfully'] ), ' <strong>', esc_html( $this->plugins[ $slug ]['name'] ), '.</strong></p></div>'; |
| 976 | 977 | } |
| 977 | 978 | } else { |
@@ -992,7 +993,8 @@ discard block |
||
| 992 | 993 | if ( ! $automatic ) { |
| 993 | 994 | // Make sure message doesn't display again if bulk activation is performed |
| 994 | 995 | // immediately after a single activation. |
| 995 | - if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. |
|
| 996 | + if ( ! isset( $_POST['action'] ) ) { |
|
| 997 | +// WPCS: CSRF OK. |
|
| 996 | 998 | echo '<div id="message" class="error"><p>', |
| 997 | 999 | sprintf( |
| 998 | 1000 | esc_html( $this->strings['plugin_needs_higher_version'] ), |