I’ve found the reason. You are calling in WP default jQuery UI (version v1.9.2 in WP 3.5) but you are using jQuery UI code that is deprecated in 1.9+
I’ve modified core files from Advanced Post Manager in order to rectify this. Can you please update the plugin and upload a new version so I don’t have to run a version with modified core files? (or provide me with another fix that doesn’t require modifying core).
I’ve modified:
./lib/tribe-filters.class.php – starting at line 407
from:
public function enqueue() {
global $current_screen;
$resources_url = apply_filters( 'tribe_apm_resources_url', $this->url . 'resources' );
$resources_url = trailingslashit($resources_url);
if ( $current_screen->id == 'edit-' . $this->filtered_post_type ) {
wp_enqueue_style('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css');
wp_enqueue_script('tribe-jquery-ui-datepicker', $resources_url . 'jquery-ui-datepicker.js', array('jquery-ui-core'), null, true );
wp_enqueue_script('tribe-filters', $resources_url . 'tribe-filters.js', array('jquery-ui-sortable', 'tribe-jquery-ui-datepicker'), null, true );
}
}
To:
public function enqueue() {
global $current_screen;
$resources_url = apply_filters( 'tribe_apm_resources_url', $this->url . 'resources' );
$resources_url = trailingslashit($resources_url);
if ( $current_screen->id == 'edit-' . $this->filtered_post_type ) {
wp_enqueue_style('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css');
//georgiancode
wp_enqueue_script('old-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js', array('jquery'), true);
//wp_enqueue_script('tribe-jquery-ui-datepicker', $resources_url . 'jquery-ui-datepicker.js', array('jquery-ui-core'), null, true );
wp_enqueue_script('tribe-jquery-ui-datepicker', $resources_url . 'jquery-ui-datepicker.js', array('old-jquery-ui'), null, true );
wp_enqueue_script('tribe-filters', $resources_url . 'tribe-filters.js', array('jquery-ui-sortable', 'tribe-jquery-ui-datepicker'), null, true );
}
}
./lib/tribe-meta-box.php – starting at Line 58
from:
function register_scripts_and_styles() {
// change '\' to '/' in case using Windows
$content_dir = str_replace('\\', '/', WP_CONTENT_DIR);
$script_dir = str_replace('\\', '/', dirname(__FILE__));
// get URL of the directory of current file, this works in both theme or plugin
$base_url = trailingslashit( str_replace($content_dir, WP_CONTENT_URL, $script_dir) );
$resources_url = apply_filters( 'tribe_apm_resources_url', $base_url . 'resources' );
$resources_url = trailingslashit($resources_url);
wp_register_style( 'tribe-meta-box', $resources_url . 'meta-box.css');
wp_register_script('tribe-meta-box', $resources_url . 'meta-box.js', array('jquery'), null, true);
wp_register_style('tribe-jquery-ui-css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/themes/base/jquery-ui.css');
wp_register_script('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/jquery-ui.min.js', array('jquery'));
wp_register_script('tribe-timepicker', 'https://github.com/trentrichardson/jQuery-Timepicker-Addon/raw/master/jquery-ui-timepicker-addon.js', array('tribe-jquery-ui'));
}
to:
function register_scripts_and_styles() {
// change '\' to '/' in case using Windows
$content_dir = str_replace('\\', '/', WP_CONTENT_DIR);
$script_dir = str_replace('\\', '/', dirname(__FILE__));
// get URL of the directory of current file, this works in both theme or plugin
$base_url = trailingslashit( str_replace($content_dir, WP_CONTENT_URL, $script_dir) );
$resources_url = apply_filters( 'tribe_apm_resources_url', $base_url . 'resources' );
$resources_url = trailingslashit($resources_url);
wp_register_style( 'tribe-meta-box', $resources_url . 'meta-box.css');
wp_register_script('tribe-meta-box', $resources_url . 'meta-box.js', array('jquery'), null, true);
wp_register_style('tribe-jquery-ui-css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/themes/base/jquery-ui.css');
//georgiancode
//wp_register_script('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/jquery-ui.min.js', array('jquery'));
wp_register_script('tribe-old-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js', array('jquery'));
wp_register_script('tribe-timepicker', 'https://github.com/trentrichardson/jQuery-Timepicker-Addon/raw/master/jquery-ui-timepicker-addon.js', array('tribe-jquery-ui'));
}
Let me know.
Thanks,
Thomas