Changeset 32623
- Timestamp:
- 05/27/2015 07:33:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r32211 r32623 46 46 * @since 2.6.0 47 47 * 48 * @param object$scripts WP_Scripts object.48 * @param WP_Scripts $scripts WP_Scripts object. 49 49 */ 50 50 function wp_default_scripts( &$scripts ) { … … 609 609 * @since 2.6.0 610 610 * 611 * @param object$styles611 * @param WP_Styles $styles 612 612 */ 613 613 function wp_default_styles( &$styles ) { … … 767 767 * 768 768 * @since 2.6.0 769 * @ uses$_wp_admin_css_colors770 * 771 * @param string $src Source URL.769 * @global array $_wp_admin_css_colors 770 * 771 * @param string $src Source URL. 772 772 * @param string $handle Either 'colors' or 'colors-rtl'. 773 * @return string URL path to CSS stylesheet for Administration Screens.773 * @return string|false URL path to CSS stylesheet for Administration Screens. 774 774 */ 775 775 function wp_style_loader_src( $src, $handle ) { … … 813 813 * 814 814 * @see wp_print_scripts() 815 * 816 * @global bool $concatenate_scripts 817 * 818 * @return array 815 819 */ 816 820 function print_head_scripts() { 817 global $ wp_scripts, $concatenate_scripts;821 global $concatenate_scripts; 818 822 819 823 if ( ! did_action('wp_print_scripts') ) { … … 822 826 } 823 827 824 if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { 825 $wp_scripts = new WP_Scripts(); 826 } 828 $wp_scripts = wp_scripts(); 827 829 828 830 script_concat_settings(); … … 849 851 * 850 852 * @since 2.8.0 853 * 854 * @global WP_Scripts $wp_scripts 855 * @global bool $concatenate_scripts 856 * 857 * @return array 851 858 */ 852 859 function print_footer_scripts() { … … 879 886 * 880 887 * @ignore 888 * 889 * @global WP_Scripts $wp_scripts 890 * @global bool $compress_scripts 881 891 */ 882 892 function _print_scripts() { … … 915 925 * 916 926 * @since 2.8.0 927 * 928 * @global WP_Scripts $wp_scripts 929 * 930 * @return array 917 931 */ 918 932 function wp_print_head_scripts() { … … 975 989 * 976 990 * @since 2.8.0 991 * 992 * @global bool $concatenate_scripts 993 * 994 * @return array 977 995 */ 978 996 function print_admin_styles() { 979 global $wp_styles, $concatenate_scripts; 980 981 if ( ! ( $wp_styles instanceof WP_Styles ) ) { 982 $wp_styles = new WP_Styles(); 983 } 997 global $concatenate_scripts; 998 999 $wp_styles = wp_styles(); 984 1000 985 1001 script_concat_settings(); … … 1006 1022 * 1007 1023 * @since 3.3.0 1024 * 1025 * @global WP_Styles $wp_styles 1026 * @global bool $concatenate_scripts 1027 * 1028 * @return array|void 1008 1029 */ 1009 1030 function print_late_styles() { … … 1036 1057 * 1037 1058 * @ignore 1059 * 1060 * @global bool $compress_css 1038 1061 */ 1039 1062 function _print_styles() { 1040 global $wp_styles, $compress_css; 1063 global $compress_css; 1064 1065 $wp_styles = wp_styles(); 1041 1066 1042 1067 $zip = $compress_css ? 1 : 0; … … 1065 1090 * 1066 1091 * @since 2.8.0 1092 * 1093 * @global bool $concatenate_scripts 1094 * @global bool $compress_scripts 1095 * @global bool $compress_css 1067 1096 */ 1068 1097 function script_concat_settings() {
Note: See TracChangeset
for help on using the changeset viewer.