Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is still an issue in 2.7.6

    /wp-admin/options-general.php?page=wlcms-plugin.php redirects to /wp-admin/ without any explanation. Other plugins that follow this settings page structure do not. Still happens when no other plugins are active.

    Happens since 2.7.4, 2.7.3 did not have this issue.

    This happens for example when WordPress is not installed in the root, but in a subfolder. The get_url() function doesn’t account for this, rather makes some assumptions about how your files are structured. Something like this should be more appropriate:

    diff --git a/inc/exopite-simple-options/exopite-simple-options-framework-class.php b/inc/exopite-simple-options/exopite-simple-options-framework-class.php
    index 4fe4e83..d03c0af 100644
    --- a/inc/exopite-simple-options/exopite-simple-options-framework-class.php
    +++ b/inc/exopite-simple-options/exopite-simple-options-framework-class.php
    @@ -650,11 +650,7 @@ if ( ! class_exists( 'Exopite_Simple_Options_Framework' ) ) :
     		 */
     		public function get_url( $path = '' ) {
    
    -			$url = str_replace(
    -				wp_normalize_path( untrailingslashit( ABSPATH ) ),
    -				site_url(),
    -				$path
    -			);
    +            		$url = plugin_dir_url($path) . basename($path);
    
     			return $url;
     		}
Viewing 2 replies - 1 through 2 (of 2 total)