Support » Plugin: Remote Media Libraries » Bug when content dir is not wp-content

  • Hi, the’s an error in your method getBaseUrl()

    As wordpress allow to change the name of the content dir, you should not use wp-content in this function, this directory is defined by WP_CONTENT_DIR :

    $pos = strpos($dirFromFile, ‘wp-content’)+strlen(‘wp-content’);

    Should be :

    $pos = strpos($dirFromFile, WP_CONTENT_DIR)+strlen(WP_CONTENT_DIR);

  • The topic ‘Bug when content dir is not wp-content’ is closed to new replies.