tillkruss / wp-cli-kraken

WP-CLI command to optimize WordPress image attachments using the Kraken Image Optimizer.
MIT License
37 stars 5 forks source link

Constant WP_POST_REVISIONS already defined #1

Closed indietravel closed 9 years ago

indietravel commented 9 years ago

Non-fatal php warning is being created:

$ wp media krake --dry-run PHP Notice: Constant WP_POST_REVISIONS already defined in phar:///usr/local/wp-cli/wp-cli-0.19.0.phar/php/wp-cli.php(23) : eval()'d code on line 50

Let me know if I can supply further information for troubleshooting. Not sure what, if anything, is needed.

tillkruss commented 9 years ago

This command isn't using the WP_POST_REVISIONS constant, I'd assume you're setting it twice in your installation or once, but too late.

indietravel commented 9 years ago

Interesting. I opened this since the warning was only showing up with this cli command. I’ll debug further, and update here if I find anything useful.

On Thu, Jun 25, 2015 at 5:32 AM, Till Krüss notifications@github.com wrote:

This command isn't using the WP_POST_REVISIONS constant, I'd assume you're setting it twice in your installation or once, but too late.

Reply to this email directly or view it on GitHub: https://github.com/tillkruss/wp-cli-kraken/issues/1#issuecomment-115089779