|
@@ 1107-1116 (lines=10) @@
|
| 1104 |
|
echo '<p>', esc_html( $this->strings['plugin_activated'] ), '</p>'; |
| 1105 |
|
} |
| 1106 |
|
} |
| 1107 |
|
} elseif ( $this->is_plugin_active( $slug ) ) { |
| 1108 |
|
// No simpler message format provided as this message should never be encountered |
| 1109 |
|
// on the plugin install page. |
| 1110 |
|
echo '<div id="message" class="error"><p>', |
| 1111 |
|
sprintf( |
| 1112 |
|
esc_html( $this->strings['plugin_already_active'] ), |
| 1113 |
|
'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>' |
| 1114 |
|
), |
| 1115 |
|
'</p></div>'; |
| 1116 |
|
} elseif ( $this->does_plugin_require_update( $slug ) ) { |
| 1117 |
|
if ( ! $automatic ) { |
| 1118 |
|
// Make sure message doesn't display again if bulk activation is performed |
| 1119 |
|
// immediately after a single activation. |
|
@@ 1121-1128 (lines=8) @@
|
| 1118 |
|
// Make sure message doesn't display again if bulk activation is performed |
| 1119 |
|
// immediately after a single activation. |
| 1120 |
|
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Not using the superglobal. |
| 1121 |
|
if ( ! isset( $_POST['action'] ) ) { |
| 1122 |
|
echo '<div id="message" class="error"><p>', |
| 1123 |
|
sprintf( |
| 1124 |
|
esc_html( $this->strings['plugin_needs_higher_version'] ), |
| 1125 |
|
'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>' |
| 1126 |
|
), |
| 1127 |
|
'</p></div>'; |
| 1128 |
|
} |
| 1129 |
|
} else { |
| 1130 |
|
// Simpler message layout for use on the plugin install page. |
| 1131 |
|
echo '<p>', sprintf( esc_html( $this->strings['plugin_needs_higher_version'] ), esc_html( $this->plugins[ $slug ]['name'] ) ), '</p>'; |