|
@@ 1051-1060 (lines=10) @@
|
| 1048 |
|
echo '<p>', esc_html( $this->strings['plugin_activated'] ), '</p>'; |
| 1049 |
|
} |
| 1050 |
|
} |
| 1051 |
|
} elseif ( $this->is_plugin_active( $slug ) ) { |
| 1052 |
|
// No simpler message format provided as this message should never be encountered |
| 1053 |
|
// on the plugin install page. |
| 1054 |
|
echo '<div id="message" class="error"><p>', |
| 1055 |
|
sprintf( |
| 1056 |
|
esc_html( $this->strings['plugin_already_active'] ), |
| 1057 |
|
'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>' |
| 1058 |
|
), |
| 1059 |
|
'</p></div>'; |
| 1060 |
|
} elseif ( $this->does_plugin_require_update( $slug ) ) { |
| 1061 |
|
if ( ! $automatic ) { |
| 1062 |
|
// Make sure message doesn't display again if bulk activation is performed |
| 1063 |
|
// immediately after a single activation. |
|
@@ 1064-1071 (lines=8) @@
|
| 1061 |
|
if ( ! $automatic ) { |
| 1062 |
|
// Make sure message doesn't display again if bulk activation is performed |
| 1063 |
|
// immediately after a single activation. |
| 1064 |
|
if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK. |
| 1065 |
|
echo '<div id="message" class="error"><p>', |
| 1066 |
|
sprintf( |
| 1067 |
|
esc_html( $this->strings['plugin_needs_higher_version'] ), |
| 1068 |
|
'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>' |
| 1069 |
|
), |
| 1070 |
|
'</p></div>'; |
| 1071 |
|
} |
| 1072 |
|
} else { |
| 1073 |
|
// Simpler message layout for use on the plugin install page. |
| 1074 |
|
echo '<p>', sprintf( esc_html( $this->strings['plugin_needs_higher_version'] ), esc_html( $this->plugins[ $slug ]['name'] ) ), '</p>'; |