@@ 1072-1081 (lines=10) @@ | ||
1069 | echo '<p>', esc_html( $this->strings['plugin_activated'] ), '</p>'; |
|
1070 | } |
|
1071 | } |
|
1072 | } elseif ( $this->is_plugin_active( $slug ) ) { |
|
1073 | // No simpler message format provided as this message should never be encountered |
|
1074 | // on the plugin install page. |
|
1075 | echo '<div id="message" class="error"><p>', |
|
1076 | sprintf( |
|
1077 | esc_html( $this->strings['plugin_already_active'] ), |
|
1078 | '<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>' |
|
1079 | ), |
|
1080 | '</p></div>'; |
|
1081 | } elseif ( $this->does_plugin_require_update( $slug ) ) { |
|
1082 | if ( ! $automatic ) { |
|
1083 | // Make sure message doesn't display again if bulk activation is performed |
|
1084 | // immediately after a single activation. |
|
@@ 1085-1092 (lines=8) @@ | ||
1082 | if ( ! $automatic ) { |
|
1083 | // Make sure message doesn't display again if bulk activation is performed |
|
1084 | // immediately after a single activation. |
|
1085 | if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. |
|
1086 | echo '<div id="message" class="error"><p>', |
|
1087 | sprintf( |
|
1088 | esc_html( $this->strings['plugin_needs_higher_version'] ), |
|
1089 | '<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>' |
|
1090 | ), |
|
1091 | '</p></div>'; |
|
1092 | } |
|
1093 | } else { |
|
1094 | // Simpler message layout for use on the plugin install page. |
|
1095 | echo '<p>', sprintf( esc_html( $this->strings['plugin_needs_higher_version'] ), esc_html( $this->plugins[ $slug ]['name'] ) ), '</p>'; |