WordPress.org

Make WordPress Core

Ticket #14921: 14921.patch

File 14921.patch, 6.9 KB (added by hakre, 4 years ago)
  • wp-includes/class.wp-dependencies.php

     
    11<?php 
    22/** 
    3  * BackPress Scripts enqueue. 
     3 * WordPress Scripts enqueue. 
    44 * 
    55 * These classes were refactored from the WordPress WP_Scripts and WordPress 
    66 * script enqueue API. 
    77 * 
    8  * @package BackPress 
    9  * @since r74 
     8 * @package WordPress 
     9 * @subpackage Dependencies 
     10 * @since {@internal Version Unknown}} 
    1011 */ 
    1112 
    1213/** 
    13  * BackPress enqueued dependiences class. 
     14 * WordPress enqueued dependiences class. 
    1415 * 
    15  * @package BackPress 
     16 * @package WordPress 
     17 * @subpackage Dependencies 
    1618 * @uses _WP_Dependency 
    17  * @since r74 
     19 * @since {@internal Version Unknown}} 
    1820 */ 
    1921class WP_Dependencies { 
    2022        var $registered = array(); 
     
    7274         * 
    7375         * Recursively builds array of items to process taking dependencies into account.  Does NOT catch infinite loops. 
    7476         * 
    75  
    7677         * @param mixed handles Accepts (string) dep name or (array of strings) dep names 
    7778         * @param bool recursion Used internally when function calls itself 
    7879         */ 
  • wp-includes/class.wp-scripts.php

     
    11<?php 
    22/** 
    3  * BackPress Scripts enqueue. 
     3 * WordPress Scripts enqueue. 
    44 * 
    55 * These classes were refactored from the WordPress WP_Scripts and WordPress 
    66 * script enqueue API. 
    77 * 
    8  * @package BackPress 
    9  * @since r16 
     8 * @package WordPress 
     9 * @subpackage Dependencies 
     10 * @since {@internal Version Unknown}} 
    1011 */ 
    1112 
    1213/** 
    13  * BackPress Scripts enqueue class. 
     14 * WordPress Scripts enqueue class. 
    1415 * 
    15  * @package BackPress 
     16 * @package WordPress 
    1617 * @uses WP_Dependencies 
    17  * @since r16 
     18 * @since {@internal Version Unknown}} 
    1819 */ 
    1920class WP_Scripts extends WP_Dependencies { 
    2021        var $base_url; // Full URL with trailing slash 
  • wp-includes/class.wp-styles.php

     
    11<?php 
    22/** 
    3  * BackPress Styles enqueue. 
     3 * WordPress Styles enqueue. 
    44 * 
    55 * These classes were refactored from the WordPress WP_Scripts and WordPress 
    66 * script enqueue API. 
    77 * 
    8  * @package BackPress 
    9  * @since r74 
     8 * @package WordPress 
     9 * @subpackage Dependencies 
     10 * @since {@internal Version Unknown}} 
     11 
    1012 */ 
    1113 
    1214/** 
    13  * BackPress Styles enqueue class. 
     15 * WordPress Styles enqueue class. 
    1416 * 
    15  * @package BackPress 
     17 * @package WordPress 
     18 * @subpackage Dependencies 
    1619 * @uses WP_Dependencies 
    17  * @since r74 
     20 * @since {@internal Version Unknown}} 
    1821 */ 
    1922class WP_Styles extends WP_Dependencies { 
    2023        var $base_url; 
  • wp-includes/functions.wp-scripts.php

     
    11<?php 
    22/** 
    3  * BackPress script procedural API. 
     3 * WordPress script procedural API. 
    44 * 
    5  * @package BackPress 
    6  * @since r16 
     5 * @package WordPress 
     6 * @subpackage Dependencies 
     7 * @since {@internal Version Unknown}} 
    78 */ 
    89 
    910/** 
     
    1516 * instantiated $wp_scripts if present. Use provided wp_print_scripts hook to 
    1617 * register/enqueue new scripts. 
    1718 * 
    18  * @since r16 
     19 * @since {@internal Version Unknown}} 
    1920 * @see WP_Dependencies::print_scripts() 
    2021 */ 
    2122function wp_print_scripts( $handles = false ) { 
     
    3738/** 
    3839 * Register new JavaScript file. 
    3940 * 
    40  * @since r16 
     41 * @since {@internal Version Unknown}} 
    4142 * @param string $handle Script name 
    4243 * @param string $src Script url 
    4344 * @param array $deps (optional) Array of script names on which this script depends 
     
    6061 * 
    6162 * Localizes only if script has already been added. 
    6263 * 
    63  * @since r16 
     64 * @since {@internal Version Unknown}} 
    6465 * @see WP_Scripts::localize() 
    6566 */ 
    6667function wp_localize_script( $handle, $object_name, $l10n ) { 
     
    7475/** 
    7576 * Remove a registered script. 
    7677 * 
    77  * @since r16 
     78 * @since {@internal Version Unknown}} 
    7879 * @see WP_Scripts::remove() For parameter information. 
    7980 */ 
    8081function wp_deregister_script( $handle ) { 
     
    9091 * 
    9192 * Registers the script if src provided (does NOT overwrite) and enqueues. 
    9293 * 
    93  * @since r16 
     94 * @since {@internal Version Unknown}} 
    9495 * @see wp_register_script() For parameter information. 
    9596 */ 
    9697function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) { 
     
    127128 * The values for list defaults to 'queue', which is the same as enqueue for 
    128129 * scripts. 
    129130 * 
    130  * @since WP unknown; BP unknown 
     131 * @since {@internal Version Unknown}} 
    131132 * 
    132133 * @param string $handle Handle used to add script. 
    133134 * @param string $list Optional, defaults to 'queue'. Others values are 'registered', 'queue', 'done', 'to_do' 
  • wp-includes/functions.wp-styles.php

     
    11<?php 
    22/** 
    3  * BackPress styles procedural API. 
     3 * WordPress styles procedural API. 
    44 * 
    5  * @package BackPress 
    6  * @since r79 
     5 * @package WordPress 
     6 * @subpackage Dependencies 
     7 * @since {@internal Version Unknown}} 
    78 */ 
    89 
    910/** 
    1011 * Display styles that are in the queue or part of $handles. 
    1112 * 
    12  * @since r79 
     13 * @since {@internal Version Unknown}} 
    1314 * @uses do_action() Calls 'wp_print_styles' hook. 
    1415 * @global object $wp_styles The WP_Styles object for printing styles. 
    1516 * 
     
    3637/** 
    3738 * Register CSS style file. 
    3839 * 
    39  * @since r79 
     40 * @since {@internal Version Unknown}} 
    4041 * @see WP_Styles::add() For additional information. 
    4142 * @global object $wp_styles The WP_Styles object for printing styles. 
    4243 * @link http://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types. 
     
    6061/** 
    6162 * Remove a registered CSS file. 
    6263 * 
    63  * @since r79 
     64 * @since {@internal Version Unknown}} 
    6465 * @see WP_Styles::remove() For additional information. 
    6566 * @global object $wp_styles The WP_Styles object for printing styles. 
    6667 * 
     
    7980 * 
    8081 * Registers the style if src provided (does NOT overwrite) and enqueues. 
    8182 * 
    82  * @since r79 
     83 * @since {@internal Version Unknown}} 
    8384 * @see WP_Styles::add(), WP_Styles::enqueue() 
    8485 * @global object $wp_styles The WP_Styles object for printing styles. 
    8586 * @link http://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types. 
     
    124125 * 
    125126 * The values for list defaults to 'queue', which is the same as wp_enqueue_style(). 
    126127 * 
    127  * @since WP unknown; BP unknown 
     128 * @since {@internal Version Unknown}} 
    128129 * @global object $wp_styles The WP_Styles object for printing styles. 
    129130 * 
    130131 * @param string $handle Name of the stylesheet.