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