Widgets added and PHP error fixed for version < 5.2
This commit is contained in:
@@ -10,8 +10,8 @@ function sportspress_admin_enqueue_scripts() {
|
||||
wp_enqueue_script( 'google-maps', 'http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places' );
|
||||
wp_enqueue_script( 'jquery-locationpicker', SPORTSPRESS_PLUGIN_URL .'/assets/js/locationpicker.jquery.js', array( 'jquery' ), '0.1.6', true );
|
||||
wp_enqueue_script( 'sportspress-admin', SPORTSPRESS_PLUGIN_URL .'/assets/js/admin.js', array( 'jquery' ), time(), true );
|
||||
wp_localize_script( 'sportspress-admin', 'localized_strings', array(
|
||||
'remove_text' => __( 'Remove', 'sportspress' )
|
||||
) );
|
||||
|
||||
// Localize scripts.
|
||||
wp_localize_script( 'sportspress-admin', 'localized_strings', array( 'remove_text' => __( 'Remove', 'sportspress' ) ) );
|
||||
}
|
||||
add_action( 'admin_enqueue_scripts', 'sportspress_admin_enqueue_scripts' );
|
||||
|
||||
Reference in New Issue
Block a user