mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
05537ab967
commit
aa20678c48
@ -93,14 +93,7 @@ class WP_Styles extends WP_Dependencies {
|
|||||||
$rtl_href = $this->_css_href( $obj->extra['rtl'], $ver, "$handle-rtl" );
|
$rtl_href = $this->_css_href( $obj->extra['rtl'], $ver, "$handle-rtl" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** This filter is documented in wp-includes/class.wp-styles.php */
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
$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 );
|
$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' ) {
|
if ( $obj->extra['rtl'] === 'replace' ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user