Fix Loading via AJAX
-
Loading via AJAX causes is_admin() to return true.
Please fix it so shortcodes are still addedThe fix is to do this instead of the current main code:
if ( is_admin() && !(defined('DOING_AJAX') && DOING_AJAX) ) { include_once( $functions_dir . 'admin-config.php' ); // Administration configuration include_once( $functions_dir . 'add-mce-button.php' ); // Editor button } else { include_once( $functions_dir . 'generate-comments-code.php' ); // Generate video comments include_once( $functions_dir . 'update-post-content.php' ); // Process post content include_once( $functions_dir . 'shortcodes.php' ); // Shortcodes include_once( $functions_dir . 'deprecated.php' ); // Deprecated options }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fix Loading via AJAX’ is closed to new replies.