mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML".
This ensures consistent capitalization where appropriate. Props navidos, desrosj. Fixes #50473. git-svn-id: https://develop.svn.wordpress.org/trunk@48199 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -169,7 +169,7 @@ function get_image_send_to_editor( $id, $caption, $title, $align, $url = '', $re
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds image shortcode with caption to editor
|
||||
* Adds image shortcode with caption to editor.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
@@ -248,7 +248,7 @@ function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $
|
||||
}
|
||||
|
||||
/**
|
||||
* Private preg_replace callback used in image_add_caption()
|
||||
* Private preg_replace callback used in image_add_caption().
|
||||
*
|
||||
* @access private
|
||||
* @since 3.4.0
|
||||
@@ -259,7 +259,7 @@ function _cleanup_image_add_caption( $matches ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds image html to editor
|
||||
* Adds image HTML to editor.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
@@ -276,15 +276,15 @@ function media_send_to_editor( $html ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Save a file submitted from a POST request and create an attachment post for it.
|
||||
* Saves a file submitted from a POST request and create an attachment post for it.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param string $file_id Index of the `$_FILES` array that the file was sent. Required.
|
||||
* @param int $post_id The post ID of a post to attach the media item to. Required, but can
|
||||
* be set to 0, creating a media item that has no relationship to a post.
|
||||
* @param array $post_data Overwrite some of the attachment. Optional.
|
||||
* @param array $overrides Override the wp_handle_upload() behavior. Optional.
|
||||
* @param array $post_data Optional. Overwrite some of the attachment.
|
||||
* @param array $overrides Optional. Override the wp_handle_upload() behavior.
|
||||
* @return int|WP_Error ID of the attachment or a WP_Error object on failure.
|
||||
*/
|
||||
function media_handle_upload( $file_id, $post_id, $post_data = array(), $overrides = array( 'test_form' => false ) ) {
|
||||
|
||||
@@ -923,7 +923,7 @@ function parent_dropdown( $default = 0, $parent = 0, $level = 0, $post = null )
|
||||
}
|
||||
|
||||
/**
|
||||
* Print out option html elements for role selectors.
|
||||
* Print out option HTML elements for role selectors.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
@@ -1566,7 +1566,7 @@ function add_settings_section( $id, $title, $callback, $page ) {
|
||||
* do_settings_fields() in do_settings-sections()
|
||||
*
|
||||
* The $callback argument should be the name of a function that echoes out the
|
||||
* html input tags for this setting field. Use get_option() to retrieve existing
|
||||
* HTML input tags for this setting field. Use get_option() to retrieve existing
|
||||
* values to show.
|
||||
*
|
||||
* @since 2.7.0
|
||||
@@ -1918,7 +1918,7 @@ function find_posts_div( $found_action = '' ) {
|
||||
/**
|
||||
* Displays the post password.
|
||||
*
|
||||
* The password is passed through esc_attr() to ensure that it is safe for placing in an html attribute.
|
||||
* The password is passed through esc_attr() to ensure that it is safe for placing in an HTML attribute.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user