WordPress.org

Make WordPress Core

Ticket #43627: 43627.diff

File 43627.diff, 1.5 KB (added by soulseekah, 19 months ago)
  • src/wp-includes/class.wp-dependencies.php

    diff --git src/wp-includes/class.wp-dependencies.php src/wp-includes/class.wp-dependencies.php
    index 716fa0c..c5074f8 100644
    class WP_Dependencies { 
    118118         * Processes a dependency.
    119119         *
    120120         * @since 2.6.0
     121         * @since 2.8.0 Added the `$group` parameter.
    121122         *
    122123         * @param string $handle Name of the item. Should be unique.
     124         * @param int|false $group  Optional. Group level: (int) level, (false) no groups. Default false.
    123125         * @return bool True on success, false if not set.
    124126         */
    125         public function do_item( $handle ) {
     127        public function do_item( $handle, $group = false ) {
    126128                return isset( $this->registered[ $handle ] );
    127129        }
    128130
  • src/wp-includes/class.wp-styles.php

    diff --git src/wp-includes/class.wp-styles.php src/wp-includes/class.wp-styles.php
    index fed6996..3225ad6 100644
    class WP_Styles extends WP_Dependencies { 
    120120         * Processes a style dependency.
    121121         *
    122122         * @since 2.6.0
     123         * @since 2.8.0 Added the `$group` parameter.
    123124         *
    124125         * @see WP_Dependencies::do_item()
    125126         *
    126127         * @param string $handle The style's registered handle.
     128         * @param int|false $group  Optional. Group level: (int) level, (false) no groups. Default false.
    127129         * @return bool True on success, false on failure.
    128130         */
    129         public function do_item( $handle ) {
     131        public function do_item( $handle, $group = false ) {
    130132                if ( ! parent::do_item( $handle ) ) {
    131133                        return false;
    132134                }