From 2dcee73454e0c1d78fbb0cd7b2362d39e5f44294 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Sat, 25 May 2013 20:47:55 +0000 Subject: [PATCH] Begin a common WordPress Backbone helpers file. Moves the `wp.template` helper to `wp-backbone.js`. git-svn-id: https://develop.svn.wordpress.org/trunk@24358 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/{template.js => wp-backbone.js} | 0 wp-includes/js/{template.min.js => wp-backbone.min.js} | 0 wp-includes/script-loader.php | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename wp-includes/js/{template.js => wp-backbone.js} (100%) rename wp-includes/js/{template.min.js => wp-backbone.min.js} (100%) diff --git a/wp-includes/js/template.js b/wp-includes/js/wp-backbone.js similarity index 100% rename from wp-includes/js/template.js rename to wp-includes/js/wp-backbone.js diff --git a/wp-includes/js/template.min.js b/wp-includes/js/wp-backbone.min.js similarity index 100% rename from wp-includes/js/template.min.js rename to wp-includes/js/wp-backbone.min.js diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index df2382acaa..6223b4a376 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -272,10 +272,10 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23'); $scripts->add( 'underscore', '/wp-includes/js/underscore.min.js', array(), '1.4.4', 1 ); - $scripts->add( 'template', "/wp-includes/js/template$suffix.js", array('underscore'), '1.4.4', 1 ); - $scripts->add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore','jquery', 'template'), '1.0.0', 1 ); + $scripts->add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore','jquery'), '1.0.0', 1 ); + $scripts->add( 'wp-backbone', "/wp-includes/js/wp-backbone$suffix.js", array('backbone'), false, 1 ); - $scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'backbone', 'jquery-ui-slider', 'jquery-ui-tooltip' ), false, 1 ); + $scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'wp-backbone', 'jquery-ui-slider', 'jquery-ui-tooltip' ), false, 1 ); $scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.8', 1 ); @@ -342,7 +342,7 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'accordion', "/wp-admin/js/accordion$suffix.js", array( 'jquery' ), false, 1 ); $scripts->add( 'shortcode', "/wp-includes/js/shortcode$suffix.js", array( 'underscore' ), false, 1 ); - $scripts->add( 'media-models', "/wp-includes/js/media-models$suffix.js", array( 'backbone', 'jquery' ), false, 1 ); + $scripts->add( 'media-models', "/wp-includes/js/media-models$suffix.js", array( 'wp-backbone' ), false, 1 ); did_action( 'init' ) && $scripts->localize( 'media-models', '_wpMediaModelsL10n', array( 'settings' => array( 'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ),