• Hello there, TinyPNG folks,

    The dashboard widget was not working correctly for me. Was receiving the following JS error…

    ReferenceError: tinyCompress is not defined

    On the WordPress Dashboard, dashboard-widget.js was being loaded before the output of wp_localize_script(), thus the undefined variable. If you add the admin.js as a dependency, thus the localization output, the error is corrected:

    File: /tiny-compress-images/src/class-tiny-plugin.php
    Line: 460

    array(self::NAME . '_admin'), self::version(), true

    Cheers.

    • This topic was modified 9 years, 2 months ago by Jason D. Moss.
    • This topic was modified 9 years, 2 months ago by Jason D. Moss.
    • This topic was modified 9 years, 2 months ago by Jason D. Moss. Reason: formatting, typo
Viewing 1 replies (of 1 total)
  • Plugin Author Tinify

    (@tinify)

    Hi Jason,

    Many thanks for the bug report, that is much appreciated! We’ll look into it and will take it into account for future releases.

Viewing 1 replies (of 1 total)

The topic ‘Dashboard Widget JS Dependency Issue’ is closed to new replies.