PluginProbe
Patchstack – WordPress & Plugins Security / 2.1.13
Patchstack – WordPress & Plugins Security v2.1.13
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/activation.php +5 -1 2.1.32.1.13 View file →
@@ -29,8 +29,12 @@
29 29 * @param boolean $network_activation If a network wide activation. (multisite)
30 30 * @return void
31 31 */
32 32 public function redirect_activation( $plugin, $network_activation ) {
33 + if ( defined( 'WP_CLI' ) && WP_CLI ) {
34 + return;
35 + }
36 +
33 37 if ( $plugin == $this->plugin->basename ) {
34 38
35 39 // In case of multisite, we want to redirect the user to a different page.
36 40 if ( $network_activation ) {
@@ -248,9 +252,9 @@
248 252 * @return void
249 253 */
250 254 public function migrate_check() {
251 255 // Only perform migrations if we have any to execute.
252 - $versions = array('3.0.0');
256 + $versions = array('3.0.0', '3.0.1');
253 257 if ( count( $versions ) == 0 ) {
254 258 return;
255 259 }
256 260