Changeset 27826
- Timestamp:
- 03/28/2014 09:23:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-styles.php
r27515 r27826 30 30 31 31 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 */ 32 39 do_action_ref_array( 'wp_default_styles', array(&$this) ); 33 40 } … … 70 77 $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : ''; 71 78 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 */ 72 87 $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); 73 88 if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) { … … 79 94 } 80 95 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 */ 81 104 $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 ); 82 105 … … 137 160 function all_deps( $handles, $recursion = false, $group = false ) { 138 161 $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 */ 140 170 $this->to_do = apply_filters( 'print_styles_array', $this->to_do ); 171 } 141 172 return $r; 142 173 } … … 149 180 if ( !empty($ver) ) 150 181 $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 */ 151 191 $src = apply_filters( 'style_loader_src', $src, $handle ); 152 192 return esc_url( $src );
Note: See TracChangeset
for help on using the changeset viewer.