Smart Slider 3 does not work with custom admin url
-
Hi @nsp-code, @tdgu,
I’m the developer of Smart Slider 3 and we have an issue with your plugin. When we use custom admin url and disable the original admin url, our plugin does not work properly.
We use ajax to save the content on the admin area and there are cases when we need to generateadmin_url
in those ajax calls. So I narrowed the problem and it seems like that your plugin does not give real admin url when admin-ajax.php used.wp-hide-security-enhancer/modules/components/admin-admin_url.php
Related code:
function update_admin_url( $url, $path, $blog_id ) { if( strpos( $_SERVER['REQUEST_URI'], "/admin-ajax.php") === FALSE ) return $url; //replace the wp-admin with custom slug $admin_url = $this->wph->functions->get_module_item_setting('admin_url'); $url = str_replace('/wp-admin', '/' . $admin_url, $url); return $url; }
Do you have any suggestion how we would be able to generate real admin urls when we use admin-ajax.php?
Are you sure that the following code is necessary?
if( strpos( $_SERVER['REQUEST_URI'], "/admin-ajax.php") === FALSE ) return $url;
Related ticket: @moultrex – https://www.ads-software.com/support/topic/not-compatible-with-wp-hide-security-enhancer/
- The topic ‘Smart Slider 3 does not work with custom admin url’ is closed to new replies.