Make WordPress Core

Changeset 27826


Ignore:
Timestamp:
03/28/2014 09:23:44 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-includes/class.wp-styles.php.

Props lkwdwrd.
Fixes #27445.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-styles.php

    r27515 r27826  
    3030
    3131    function __construct() {
     32        /**
     33         * Fires when the WP_Styles instance is initialized.
     34         *
     35         * @since 2.6.0
     36         *
     37         * @param WP_Styles &$this WP_Styles instance, passed by reference.
     38         */
    3239        do_action_ref_array( 'wp_default_styles', array(&$this) );
    3340    }
     
    7077        $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : '';
    7178
     79        /**
     80         * Filter the HTML link tag of an enqueued style.
     81         *
     82         * @since 2.6.0
     83         *
     84         * @param string         The link tag for the enqueued style.
     85         * @param string $handle The style's registered handle.
     86         */
    7287        $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle );
    7388        if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) {
     
    7994            }
    8095
     96            /**
     97             * Filter the right-to-left (RTL) HTML link tag of an enqueued style.
     98             *
     99             * @since 2.6.0
     100             *
     101             * @param string $rtl_style The right to left link tag for the enqueued style.
     102             * @param string $handle    The style's registered handle.
     103             */
    81104            $rtl_tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle );
    82105
     
    137160    function all_deps( $handles, $recursion = false, $group = false ) {
    138161        $r = parent::all_deps( $handles, $recursion );
    139         if ( !$recursion )
     162        if ( !$recursion ) {
     163            /**
     164             * Filter the array of enqueued styles before processing for output.
     165             *
     166             * @since 2.6.0
     167             *
     168             * @param array $to_do The list of enqueued styles about to be processed.
     169             */
    140170            $this->to_do = apply_filters( 'print_styles_array', $this->to_do );
     171        }
    141172        return $r;
    142173    }
     
    149180        if ( !empty($ver) )
    150181            $src = add_query_arg('ver', $ver, $src);
     182
     183        /**
     184         * Filter an enqueued style's fully-qualified URL.
     185         *
     186         * @since 2.6.0
     187         *
     188         * @param string $src    The source URL of the enqueued style.
     189         * @param string $handle The style's registered handle.
     190         */
    151191        $src = apply_filters( 'style_loader_src', $src, $handle );
    152192        return esc_url( $src );
Note: See TracChangeset for help on using the changeset viewer.