Support » Plugin: Cleanup Images » Fix for Strict standards: Only variables should be passed by reference line 100

  • Resolved overclokk

    (@overclokk)


    Hi,

    the plugin show a PHP error at line 100 of cui.php:
    Strict standards: Only variables should be passed by reference

    Replace
    $content_dir = array_pop(explode("/", WP_CONTENT_DIR));

    With

    $explode_dir = explode("/", WP_CONTENT_DIR);
    $content_dir = array_pop($explode_dir);

    Bye 🙂

    https://wordpress.org/plugins/cleanup-images/

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

    (@delwinv)

    Thanks,

    This is part of code that exists from previous plugins on which this plugin is based and I had no need to look that closely at the code which was functioning. Thank you for making a more thourough examination and review of the code. Your help makes the plugin more robust.

    Delwin.

    Plugin Author delwinv

    (@delwinv)

    This has been changed in version 1.04 of the plugin

    Thread Starter overclokk

    (@overclokk)

    You’re welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fix for Strict standards: Only variables should be passed by reference line 100’ is closed to new replies.