Support » Plugin: Autoptimize » Undefined variable: _setting since version 2.4.2

  • Resolved m266

    (@m266)


    Hi Frank,

    I found this error message with plugin “Query Monitor”:
    Undefined variable: _setting
    wp-content/plugins/autoptimize/classes/autoptimizeExtra.php:610

    Please fix it.
    Thanks.

    Greetings Hans

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    arrrrrrgggghhhhhh … stupid me, stupid notice (not an error :-p )

    OK, open that file and on line 610 replace

    if ( ! $_setting || empty( $_setting ) || ( '1' !== $_setting && '3' !== $_setting ) ) {

    with
    if ( ! isset( $_setting ) || empty( $_setting ) || ( '1' !== $_setting && '3' !== $_setting ) ) {

    so !isset() instead of just !

    I’ll make sure this goes in the next update.

    frank

    Hi Frank,

    I know, this is a notice 🙂
    I’am waiting for your next update.

    Thanks for your fast answer.

    Hans

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I am waiting for your next update.

    To be clear; barring major issues with 2.4.2 an update could be a couple of months away 🙂

    have a nice day!
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined variable: _setting since version 2.4.2’ is closed to new replies.