mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
Ensure the style_loader_tag
filter hook is only documented once.
See #26869. git-svn-id: https://develop.svn.wordpress.org/trunk@28209 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9da8915408
commit
bf8c70a4ee
@ -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' ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user