- 7EBC84453BE6F3E9ED61AE71EBD5E33C48F3E17EB29A3905CA8542B28B380415C45307BA1CD76ECFCB3F48BACB6C0826834C03B46E110A2C0158ACD549BB9E23
+ 9EF4447FC6DC27266918AE9001DAACBB59D804D6EA101EC8F98D91DC883562F2ECF9711B52D86319846316E68F709595A7BA4D1E8CDDF161602DF44BDCA6813D
mp-wp/wp-includes/script-loader.php
(13 . 12)(13 . 6)
56662 /** BackPress: WordPress Dependencies Class */
56663 require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
56664
56665 /** BackPress: WordPress Scripts Class */
56666 require( ABSPATH . WPINC . '/class.wp-scripts.php' );
56667
56668 /** BackPress: WordPress Scripts Functions */
56669 require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
56670
56671 /** BackPress: WordPress Styles Class */
56672 require( ABSPATH . WPINC . '/class.wp-styles.php' );
56673
(26 . 257)(20 . 6)
56675 require( ABSPATH . WPINC . '/functions.wp-styles.php' );
56676
56677 /**
56678 * Setup WordPress scripts to load by default for Administration Panels.
56679 *
56680 * Localizes a few of the scripts.
56681 *
56682 * @since 2.6.0
56683 *
56684 * @param object $scripts WP_Scripts object.
56685 */
56686 function wp_default_scripts( &$scripts ) {
56687 if (!$guessurl = site_url())
56688 $guessurl = wp_guess_url();
56689
56690 $scripts->base_url = $guessurl;
56691 $scripts->default_version = get_bloginfo( 'version' );
56692
56693 $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081210' );
56694 $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
56695
56696 $scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081210' );
56697 $scripts->localize( 'quicktags', 'quicktagsL10n', array(
56698 'quickLinks' => __('(Quick Links)'),
56699 'wordLookup' => __('Enter a word to look up:'),
56700 'dictionaryLookup' => attribute_escape(__('Dictionary lookup')),
56701 'lookup' => attribute_escape(__('lookup')),
56702 'closeAllOpenTags' => attribute_escape(__('Close all open tags')),
56703 'closeTags' => attribute_escape(__('close tags')),
56704 'enterURL' => __('Enter the URL'),
56705 'enterImageURL' => __('Enter the URL of the image'),
56706 'enterImageDescription' => __('Enter a description of the image'),
56707 'l10n_print_after' => 'try{convertEntities(quicktagsL10n);}catch(e){};'
56708 ) );
56709
56710 $scripts->add( 'colorpicker', '/wp-includes/js/colorpicker.js', array('prototype'), '3517' );
56711
56712 $scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');
56713
56714 $scripts->add( 'wp-ajax-response', '/wp-includes/js/wp-ajax-response.js', array('jquery'), '20081210' );
56715 $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
56716 'noPerm' => __('You do not have permission to do that.'),
56717 'broken' => __('An unidentified error has occurred.'),
56718 'l10n_print_after' => 'try{convertEntities(wpAjax);}catch(e){};'
56719 ) );
56720
56721 $scripts->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20081210' );
56722
56723 $scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20081210' );
56724 $scripts->localize( 'wp-lists', 'wpListL10n', array(
56725 'url' => admin_url('admin-ajax.php')
56726 ) );
56727
56728 $scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.0');
56729 $scripts->add( 'scriptaculous-builder', '/wp-includes/js/scriptaculous/builder.js', array('scriptaculous-root'), '1.8.0');
56730 $scripts->add( 'scriptaculous-dragdrop', '/wp-includes/js/scriptaculous/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.8.0');
56731 $scripts->add( 'scriptaculous-effects', '/wp-includes/js/scriptaculous/effects.js', array('scriptaculous-root'), '1.8.0');
56732 $scripts->add( 'scriptaculous-slider', '/wp-includes/js/scriptaculous/slider.js', array('scriptaculous-effects'), '1.8.0');
56733 $scripts->add( 'scriptaculous-sound', '/wp-includes/js/scriptaculous/sound.js', array( 'scriptaculous-root' ), '1.8.0' );
56734 $scripts->add( 'scriptaculous-controls', '/wp-includes/js/scriptaculous/controls.js', array('scriptaculous-root'), '1.8.0');
56735 $scripts->add( 'scriptaculous', '', array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls'), '1.8.0');
56736
56737 $scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');
56738
56739 $scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.2.6');
56740 $scripts->add( 'jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '2.02');
56741 $scripts->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.js', array('jquery'), '2.0-4561');
56742 $scripts->add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.2' );
56743 $scripts->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('jquery'), '1.1b');
56744 $scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20');
56745 $scripts->add( 'jquery-hotkeys', '/wp-includes/js/jquery/jquery.hotkeys.js', array('jquery'), '0.0.2' );
56746 $scripts->add( 'jquery-table-hotkeys', '/wp-includes/js/jquery/jquery.table-hotkeys.js', array('jquery', 'jquery-hotkeys'), '20081128' );
56747 $scripts->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.js', array('jquery'), '3.1-20080430');
56748 $scripts->add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2.2.0-20081031');
56749 $scripts->add( 'swfupload-degrade', '/wp-includes/js/swfupload/plugins/swfupload.graceful_degradation.js', array('swfupload'), '2.2.0-20081031');
56750 $scripts->add( 'swfupload-swfobject', '/wp-includes/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload'), '2.2.0-20081031');
56751 $scripts->localize( 'swfupload-degrade', 'uploadDegradeOptions', array(
56752 'is_lighttpd_before_150' => is_lighttpd_before_150(),
56753 ) );
56754 $scripts->add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2.2.0-20081031');
56755 $scripts->add( 'swfupload-handlers', '/wp-includes/js/swfupload/handlers.js', array('swfupload'), '2.2.0-20081201');
56756 // these error messages came from the sample swfupload js, they might need changing.
56757 $scripts->localize( 'swfupload-handlers', 'swfuploadL10n', array(
56758 'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
56759 'file_exceeds_size_limit' => sprintf(__('This file is too big. Your php.ini upload_max_filesize is %s.'), @ini_get('upload_max_filesize')),
56760 'zero_byte_file' => __('This file is empty. Please try another.'),
56761 'invalid_filetype' => __('This file type is not allowed. Please try another.'),
56762 'default_error' => __('An error occurred in the upload. Please try again later.'),
56763 'missing_upload_url' => __('There was a configuration error. Please contact the server administrator.'),
56764 'upload_limit_exceeded' => __('You may only upload 1 file.'),
56765 'http_error' => __('HTTP error.'),
56766 'upload_failed' => __('Upload failed.'),
56767 'io_error' => __('IO error.'),
56768 'security_error' => __('Security error.'),
56769 'file_cancelled' => __('File cancelled.'),
56770 'upload_stopped' => __('Upload stopped.'),
56771 'dismiss' => __('Dismiss'),
56772 'crunching' => __('Crunching…'),
56773 'deleted' => __('Deleted'),
56774 'l10n_print_after' => 'try{convertEntities(swfuploadL10n);}catch(e){};'
56775 ) );
56776
56777 $scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.5.2' );
56778 $scripts->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.5.2' );
56779 $scripts->add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.5.2c' );
56780 $scripts->add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.5.2' );
56781 $scripts->add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.5.2' );
56782 $scripts->add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.5.2' );
56783
56784 $scripts->add( 'comment-reply', '/wp-includes/js/comment-reply.js', false, '20081210');
56785
56786 if ( is_admin() ) {
56787 $scripts->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20081210' );
56788 $scripts->localize( 'ajaxcat', 'catL10n', array(
56789 'add' => attribute_escape(__('Add')),
56790 'how' => __('Separate multiple categories with commas.'),
56791 'l10n_print_after' => 'try{convertEntities(catL10n);}catch(e){};'
56792 ) );
56793 $scripts->add( 'admin-categories', '/wp-admin/js/categories.js', array('wp-lists'), '20081210' );
56794 $scripts->add( 'admin-tags', '/wp-admin/js/tags.js', array('wp-lists'), '20081210' );
56795 $scripts->add( 'admin-custom-fields', '/wp-admin/js/custom-fields.js', array('wp-lists'), '20081210' );
56796 $scripts->add( 'password-strength-meter', '/wp-admin/js/password-strength-meter.js', array('jquery'), '20081210' );
56797 $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
56798 'empty' => __('Strength indicator'),
56799 'short' => __('Very weak'),
56800 'bad' => __('Weak'),
56801 'good' => _c('Medium|password strength'),
56802 'strong' => __('Strong'),
56803 'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
56804 ) );
56805 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081210' );
56806 $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
56807 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
56808 'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last'])
56809 ) );
56810 $scripts->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20081210' );
56811 $scripts->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' );
56812 $scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery-ui-sortable'), '20081210' );
56813 $scripts->localize( 'postbox', 'postboxL10n', array(
56814 'requestFile' => admin_url('admin-ajax.php')
56815 ) );
56816 $scripts->add( 'slug', '/wp-admin/js/slug.js', array('jquery'), '20081210' );
56817 $scripts->localize( 'slug', 'slugL10n', array(
56818 'requestFile' => admin_url('admin-ajax.php'),
56819 'save' => __('Save'),
56820 'cancel' => __('Cancel'),
56821 'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};'
56822 ) );
56823 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20081210' );
56824 $scripts->localize( 'post', 'postL10n', array(
56825 'tagsUsed' => __('Tags used on this post:'),
56826 'add' => attribute_escape(__('Add')),
56827 'addTag' => attribute_escape(__('Add new tag')),
56828 'separate' => __('Separate tags with commas'),
56829 'cancel' => __('Cancel'),
56830 'edit' => __('Edit'),
56831 'publishOn' => __('Publish on:'),
56832 'publishOnFuture' => __('Schedule for:'),
56833 'publishOnPast' => __('Published on:'),
56834 'showcomm' => __('Show more comments'),
56835 'endcomm' => __('No more comments found.'),
56836 'publish' => __('Publish'),
56837 'schedule' => __('Schedule'),
56838 'update' => __('Update Post'),
56839 'savePending' => __('Save as Pending'),
56840 'saveDraft' => __('Save Draft'),
56841 'private' => __('Private'),
56842 'public' => __('Public'),
56843 'publicSticky' => __('Public, Sticky'),
56844 'password' => __('Password Protected'),
56845 'privatelyPublished' => __('Privately Published'),
56846 'published' => __('Published'),
56847 'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
56848 ) );
56849 $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'wp-lists', 'postbox'), '20081210' );
56850 $scripts->localize( 'page', 'postL10n', array(
56851 'cancel' => __('Cancel'),
56852 'edit' => __('Edit'),
56853 'publishOn' => __('Publish on:'),
56854 'publishOnFuture' => __('Schedule for:'),
56855 'publishOnPast' => __('Published on:'),
56856 'showcomm' => __('Show more comments'),
56857 'endcomm' => __('No more comments found.'),
56858 'publish' => __('Publish'),
56859 'schedule' => __('Schedule'),
56860 'update' => __('Update Page'),
56861 'savePending' => __('Save as Pending'),
56862 'saveDraft' => __('Save Draft'),
56863 'private' => __('Private'),
56864 'public' => __('Public'),
56865 'password' => __('Password Protected'),
56866 'privatelyPublished' => __('Privately Published'),
56867 'published' => __('Published'),
56868 'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
56869 ) );
56870 $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '20081210' );
56871 $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '20081210' );
56872 $scripts->localize( 'comment', 'commentL10n', array(
56873 'cancel' => __('Cancel'),
56874 'edit' => __('Edit'),
56875 'submittedOn' => __('Submitted on:'),
56876 'l10n_print_after' => 'try{convertEntities(commentL10n);}catch(e){};'
56877 ) );
56878 $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20081210' );
56879 $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20081210' );
56880
56881 $scripts->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20081210' );
56882 $scripts->localize( 'admin-widgets', 'widgetsL10n', array(
56883 'add' => __('Add'),
56884 'edit' => __('Edit'),
56885 'cancel' => __('Cancel'),
56886 'lameReminder' => __('Remember to click the "Save Changes" button at the bottom of the Current Widgets column after you\'re all done!'),
56887 'lamerReminder' => __("You're about to leave without having saved your changes!"),
56888 'l10n_print_after' => 'try{convertEntities(widgetsL10n);}catch(e){};'
56889 ));
56890
56891 $scripts->add( 'word-count', '/wp-admin/js/word-count.js', array( 'jquery' ), '20081210' );
56892 $scripts->localize( 'word-count', 'wordCountL10n', array(
56893 'count' => __('Word count: %d'),
56894 'l10n_print_after' => 'try{convertEntities(wordCountL10n);}catch(e){};'
56895 ));
56896
56897 $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20081210' );
56898
56899 $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081210' );
56900 $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
56901 'error' => __('Error while saving the changes.'),
56902 'ntdeltitle' => __('Remove From Bulk Edit'),
56903 'notitle' => __('(no title)'),
56904 'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
56905 ) );
56906
56907 $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081210' );
56908 $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
56909 'error' => __('Error while saving the changes.'),
56910 'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
56911 ) );
56912
56913 $scripts->add( 'plugin-install', '/wp-admin/js/plugin-install.js', array( 'thickbox', 'jquery' ), '20081210' );
56914 $scripts->localize( 'plugin-install', 'plugininstallL10n', array(
56915 'plugin_information' => __('Plugin Information:'),
56916 'l10n_print_after' => 'try{convertEntities(plugininstallL10n);}catch(e){};'
56917 ) );
56918
56919 $scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
56920
56921 $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '20081210' );
56922
56923 $scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20081210' );
56924
56925 }
56926 }
56927
56928 /**
56929 * Assign default styles to $styles object.
56930 *
56931 * Nothing is returned, because the $styles parameter is passed by reference.
(298 . 21)(41 . 12)
56933 $guessurl = wp_guess_url();
56934 $styles->base_url = $guessurl;
56935 $styles->default_version = get_bloginfo( 'version' );
56936 $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';
56937
56938 $rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'plugin-install', 'farbtastic' );
56939
56940 $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081210' );
56941 $styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
56942
56943 $styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081210' );
56944 $styles->add_data( 'ie', 'conditional', 'gte IE 6' );
56945 $styles->add( 'wp-admin', '/wp-admin/css/wp-admin.css', array(), '20081210' );
56946
56947 $styles->add( 'colors', true, array(), '20081210' ); // Register "meta" stylesheet for admin colors
56948 $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20081210'); // for login.php. Is there a better way?
56949 $styles->add_data( 'colors-fresh', 'rtl', true );
56950 $styles->add( 'colors-classic', '/wp-admin/css/colors-classic.css', array(), '20081210');
56951 $styles->add_data( 'colors-classic', 'rtl', true );
56952
56953 $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081210' );
56954 $styles->add( 'media', '/wp-admin/css/media.css', array(), '20081210' );
(320 . 112)(54 . 9)
56956 $styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20081210' );
56957 $styles->add( 'install', '/wp-admin/css/install.css', array(), '20081210' );
56958 $styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20081210' );
56959 $styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20081210' );
56960 $styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' );
56961 $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' );
56962 $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
56963
56964 foreach ( $rtl_styles as $rtl_style )
56965 $styles->add_data( $rtl_style, 'rtl', true );
56966 }
56967
56968 /**
56969 * Reorder JavaScript scripts array to place prototype before jQuery.
56970 *
56971 * @since 2.3.1
56972 *
56973 * @param array $js_array JavaScript scripst array
56974 * @return array Reordered array, if needed.
56975 */
56976 function wp_prototype_before_jquery( $js_array ) {
56977 if ( false === $jquery = array_search( 'jquery', $js_array ) )
56978 return $js_array;
56979
56980 if ( false === $prototype = array_search( 'prototype', $js_array ) )
56981 return $js_array;
56982
56983 if ( $prototype < $jquery )
56984 return $js_array;
56985
56986 unset($js_array[$prototype]);
56987
56988 array_splice( $js_array, $jquery, 0, 'prototype' );
56989
56990 return $js_array;
56991 }
56992
56993 /**
56994 * Load localized script just in time for MCE.
56995 *
56996 * These localizations require information that may not be loaded even by init.
56997 *
56998 * @since 2.5.0
56999 */
57000 function wp_just_in_time_script_localization() {
57001 global $current_user;
57002
57003 wp_localize_script( 'autosave', 'autosaveL10n', array(
57004 'autosaveInterval' => AUTOSAVE_INTERVAL,
57005 'previewPageText' => __('Preview this Page'),
57006 'previewPostText' => __('Preview this Post'),
57007 'requestFile' => admin_url('admin-ajax.php'),
57008 'savingText' => __('Saving Draft…'),
57009 'l10n_print_after' => 'try{convertEntities(autosaveL10n);}catch(e){};'
57010 ) );
57011
57012 $userid = isset($current_user) ? $current_user->ID : 0;
57013 wp_localize_script( 'common', 'userSettings', array(
57014 'url' => SITECOOKIEPATH,
57015 'uid' => $userid,
57016 'time' => time()
57017 ) );
57018 }
57019
57020 /**
57021 * Administration Panel CSS for changing the styles.
57022 *
57023 * If installing the 'wp-admin/' directory will be replaced with './'.
57024 *
57025 * The $_wp_admin_css_colors global manages the Administration Panels CSS
57026 * stylesheet that is loaded. The option that is set is 'admin_color' and is the
57027 * color and key for the array. The value for the color key is an object with
57028 * a 'url' parameter that has the URL path to the CSS file.
57029 *
57030 * The query from $src parameter will be appended to the URL that is given from
57031 * the $_wp_admin_css_colors array value URL.
57032 *
57033 * @since 2.6.0
57034 * @uses $_wp_admin_css_colors
57035 *
57036 * @param string $src Source URL.
57037 * @param string $handle Either 'colors' or 'colors-rtl'.
57038 * @return string URL path to CSS stylesheet for Administration Panels.
57039 */
57040 function wp_style_loader_src( $src, $handle ) {
57041 if ( defined('WP_INSTALLING') )
57042 return preg_replace( '#^wp-admin/#', './', $src );
57043
57044 if ( 'colors' == $handle || 'colors-rtl' == $handle ) {
57045 global $_wp_admin_css_colors;
57046 $color = get_user_option('admin_color');
57047 if ( empty($color) || !isset($_wp_admin_css_colors[$color]) )
57048 $color = 'fresh';
57049 $color = $_wp_admin_css_colors[$color];
57050 $parsed = parse_url( $src );
57051 $url = $color->url;
57052 if ( isset($parsed['query']) && $parsed['query'] ) {
57053 wp_parse_str( $parsed['query'], $qv );
57054 $url = add_query_arg( $qv, $url );
57055 }
57056 return $url;
57057 }
57058
57059 return $src;
57060 }
57061
57062 add_action( 'wp_default_scripts', 'wp_default_scripts' );
57063 add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
57064 add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
57065
57066 add_action( 'wp_default_styles', 'wp_default_styles' );
57067 add_filter( 'style_loader_src', 'wp_style_loader_src', 10, 2 );