Support » Plugin: Merge + Minify + Refresh » Not compatible with wp-content outside WordPress root path

  • Resolved llaumgui

    (@llaumgui)


    Hi,

    I think that this plugin is not compatible if my wp-content is not in my WordPress root path.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter llaumgui

    (@llaumgui)

    This is seem fix my issues :

    if (strpos($script_path, 'wp-content') === false || !defined('WP_CONTENT_DIR')) {
                                    $script_path = $this->fix_wp_subfolder($script_path);
                                }

    Hey Llaumgui, where did you add these new lines?

    This is an issue. I have wordpress core files under /public_html/wp/ and plugin, uploads, and theme files under /public_html/app/, yet the plugin attempt to look in /public_html/wp/app/themes/{mytheme}/style.css and fails because the correct path is /public_html/app/themes/{mytheme}/style.css

    WP_CONTENT_DIR is correctly set to /public_html/app/ – but this plugin does not seem to be using WP_CONTENT_DIR

    Thread Starter llaumgui

    (@llaumgui)

    Search :
    $script_path = $this->fix_wp_subfolder($script_path);
    And replace b my code.

    Chris Van Patten

    (@chrisvanpatten)

    I’ve seen the same behavior. In cases where WP_CONTENT_DIR is defined, that constant should be respected as the canonical content directory path.

    Plugin Author launchinteractive

    (@launchinteractive)

    I’ve finally had a look at this and rolled out MMR 1.8.12. It should sort this issue. I’ll mark it as resolved but if you have any issues please open a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not compatible with wp-content outside WordPress root path’ is closed to new replies.