Changeset 48199 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 06/28/2020 02:00:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r48197 r48199 3916 3916 * 3917 3917 * The search query string is passed through esc_attr() to ensure that it is safe 3918 * for placing in an htmlattribute.3918 * for placing in an HTML attribute. 3919 3919 * 3920 3920 * @since 2.3.0 … … 3944 3944 * 3945 3945 * The search query string is passed through esc_attr() to ensure that it is safe 3946 * for placing in an htmlattribute.3946 * for placing in an HTML attribute. 3947 3947 * 3948 3948 * @since 2.1.0 … … 3960 3960 3961 3961 /** 3962 * Gets the language attributes for the htmltag.3963 * 3964 * Builds up a set of htmlattributes containing the text direction and language3962 * Gets the language attributes for the 'html' tag. 3963 * 3964 * Builds up a set of HTML attributes containing the text direction and language 3965 3965 * information for the page. 3966 3966 * 3967 3967 * @since 4.3.0 3968 3968 * 3969 * @param string $doctype Optional. The type of htmldocument. Accepts 'xhtml' or 'html'. Default 'html'.3969 * @param string $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'. 3970 3970 */ 3971 3971 function get_language_attributes( $doctype = 'html' ) { … … 3990 3990 3991 3991 /** 3992 * Filters the language attributes for display in the htmltag.3992 * Filters the language attributes for display in the 'html' tag. 3993 3993 * 3994 3994 * @since 2.5.0 … … 3996 3996 * 3997 3997 * @param string $output A space-separated list of language attributes. 3998 * @param string $doctype The type of htmldocument (xhtml|html).3998 * @param string $doctype The type of HTML document (xhtml|html). 3999 3999 */ 4000 4000 return apply_filters( 'language_attributes', $output, $doctype ); … … 4002 4002 4003 4003 /** 4004 * Displays the language attributes for the htmltag.4005 * 4006 * Builds up a set of htmlattributes containing the text direction and language4004 * Displays the language attributes for the 'html' tag. 4005 * 4006 * Builds up a set of HTML attributes containing the text direction and language 4007 4007 * information for the page. 4008 4008 * … … 4010 4010 * @since 4.3.0 Converted into a wrapper for get_language_attributes(). 4011 4011 * 4012 * @param string $doctype Optional. The type of htmldocument. Accepts 'xhtml' or 'html'. Default 'html'.4012 * @param string $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'. 4013 4013 */ 4014 4014 function language_attributes( $doctype = 'html' ) { … … 4655 4655 4656 4656 /** 4657 * Outputs the htmlchecked attribute.4657 * Outputs the HTML checked attribute. 4658 4658 * 4659 4659 * Compares the first two arguments and if identical marks as checked … … 4664 4664 * @param mixed $current (true) The other value to compare if not just true 4665 4665 * @param bool $echo Whether to echo or just return the string 4666 * @return string htmlattribute or empty string4666 * @return string HTML attribute or empty string 4667 4667 */ 4668 4668 function checked( $checked, $current = true, $echo = true ) { … … 4671 4671 4672 4672 /** 4673 * Outputs the htmlselected attribute.4673 * Outputs the HTML selected attribute. 4674 4674 * 4675 4675 * Compares the first two arguments and if identical marks as selected … … 4680 4680 * @param mixed $current (true) The other value to compare if not just true 4681 4681 * @param bool $echo Whether to echo or just return the string 4682 * @return string htmlattribute or empty string4682 * @return string HTML attribute or empty string 4683 4683 */ 4684 4684 function selected( $selected, $current = true, $echo = true ) { … … 4687 4687 4688 4688 /** 4689 * Outputs the htmldisabled attribute.4689 * Outputs the HTML disabled attribute. 4690 4690 * 4691 4691 * Compares the first two arguments and if identical marks as disabled … … 4696 4696 * @param mixed $current (true) The other value to compare if not just true 4697 4697 * @param bool $echo Whether to echo or just return the string 4698 * @return string htmlattribute or empty string4698 * @return string HTML attribute or empty string 4699 4699 */ 4700 4700 function disabled( $disabled, $current = true, $echo = true ) { … … 4703 4703 4704 4704 /** 4705 * Outputs the htmlreadonly attribute.4705 * Outputs the HTML readonly attribute. 4706 4706 * 4707 4707 * Compares the first two arguments and if identical marks as readonly … … 4712 4712 * @param mixed $current (true) The other value to compare if not just true 4713 4713 * @param bool $echo Whether to echo or just return the string 4714 * @return string htmlattribute or empty string4714 * @return string HTML attribute or empty string 4715 4715 */ 4716 4716 function readonly( $readonly, $current = true, $echo = true ) { … … 4730 4730 * @param bool $echo Whether to echo or just return the string 4731 4731 * @param string $type The type of checked|selected|disabled|readonly we are doing 4732 * @return string htmlattribute or empty string4732 * @return string HTML attribute or empty string 4733 4733 */ 4734 4734 function __checked_selected_helper( $helper, $current, $echo, $type ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
Note: See TracChangeset
for help on using the changeset viewer.