Ensure the style_loader_tag filter hook is only documented once.

See #26869.

Built from https://develop.svn.wordpress.org/trunk@28209


git-svn-id: http://core.svn.wordpress.org/trunk@28039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-04-25 06:29:14 +00:00
parent 05537ab967
commit aa20678c48

View File

@ -93,14 +93,7 @@ class WP_Styles extends WP_Dependencies {
$rtl_href = $this->_css_href( $obj->extra['rtl'], $ver, "$handle-rtl" );
}
/**
* Filter the right-to-left (RTL) HTML link tag of an enqueued style.
*
* @since 2.6.0
*
* @param string $rtl_style The right to left link tag for the enqueued style.
* @param string $handle The style's registered handle.
*/
/** This filter is documented in wp-includes/class.wp-styles.php */
$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 );
if ( $obj->extra['rtl'] === 'replace' ) {