Plugin causes warnings with WP CLI Activate Command
-
This plugin currently causes warnings in the WP CLI when activating the plugin. The CLI outputs:
Warning: Some code is trying to do a URL redirect. Backtrace:
0 WP_CLI\Utils\wp_redirect_handler(https://mumchat.com/wp-admin/admin.php?page=tagembed) called at [/home/example/wp-includes/class-wp-hook.php:310]
1 WP_Hook->apply_filters(https://mumchat.com/wp-admin/admin.php?page=tagembed, Array ([0] => https://mumchat.com/wp-admin/admin.php?page=tagembed,%5B1%5D => 302)) called at [/home/example/wp-includes/plugin.php:205]
2 apply_filters(wp_redirect, https://mumchat.com/wp-admin/admin.php?page=tagembed, 302) called at [/home/example/wp-includes/pluggable.php:1388]
3 wp_redirect(https://mumchat.com/wp-admin/admin.php?page=tagembed) called at [/home/example/wp-content/plugins/tagembed-widget/tagembed.php:1226]
The plugin should detect when CLI is being used and not attempt redirects.
- The topic ‘Plugin causes warnings with WP CLI Activate Command’ is closed to new replies.