Docs: There are quite alot of typos in core inline comments.
See #32246. Built from https://develop.svn.wordpress.org/trunk@34717 git-svn-id: http://core.svn.wordpress.org/trunk@34681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5dcced2d13
commit
8b4c499664
|
@ -452,7 +452,7 @@ class WP_Upgrader {
|
||||||
$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
|
$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
|
||||||
} elseif ( count( $source_files ) == 0 ) {
|
} elseif ( count( $source_files ) == 0 ) {
|
||||||
return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files?
|
return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files?
|
||||||
} else { //It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename.
|
} else { // It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
|
||||||
$source = trailingslashit( $args['source'] );
|
$source = trailingslashit( $args['source'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -876,7 +876,7 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @param string $plugin The basename path to the main plugin file.
|
* @param string $plugin The basename path to the main plugin file.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* Optional. Other arguments for upgrading a plugin package. Defualt empty array.
|
* Optional. Other arguments for upgrading a plugin package. Default empty array.
|
||||||
*
|
*
|
||||||
* @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
|
* @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
|
||||||
* Default true.
|
* Default true.
|
||||||
|
@ -1232,7 +1232,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
* @access public
|
||||||
* @var array|WP_Erorr $result
|
* @var array|WP_Error $result
|
||||||
* @see WP_Upgrader::$result
|
* @see WP_Upgrader::$result
|
||||||
*/
|
*/
|
||||||
public $result;
|
public $result;
|
||||||
|
@ -2421,7 +2421,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compare the disk file checksums agains the expected checksums.
|
* Compare the disk file checksums against the expected checksums.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
* @access public
|
||||||
|
|
|
@ -93,9 +93,9 @@ function wp_create_categories( $categories, $post_id = '' ) {
|
||||||
* @param array $catarr {
|
* @param array $catarr {
|
||||||
* Array of arguments for inserting a new category.
|
* Array of arguments for inserting a new category.
|
||||||
*
|
*
|
||||||
* @type int $cat_ID Categoriy ID. A non-zero value updates an existing category.
|
* @type int $cat_ID Category ID. A non-zero value updates an existing category.
|
||||||
* Default 0.
|
* Default 0.
|
||||||
* @type string $taxonomy Taxonomy slug. Defualt 'category'.
|
* @type string $taxonomy Taxonomy slug. Default 'category'.
|
||||||
* @type string $cat_name Category name. Default empty.
|
* @type string $cat_name Category name. Default empty.
|
||||||
* @type string $category_description Category description. Default empty.
|
* @type string $category_description Category description. Default empty.
|
||||||
* @type string $category_nicename Category nice (display) name. Default empty.
|
* @type string $category_nicename Category nice (display) name. Default empty.
|
||||||
|
|
|
@ -48,10 +48,10 @@ final class _WP_Editors {
|
||||||
* @type int $textarea_rows Number rows in the editor textarea. Default 20.
|
* @type int $textarea_rows Number rows in the editor textarea. Default 20.
|
||||||
* @type string|int $tabindex Tabindex value to use. Default empty.
|
* @type string|int $tabindex Tabindex value to use. Default empty.
|
||||||
* @type string $tabfocus_elements The previous and next element ID to move the focus to
|
* @type string $tabfocus_elements The previous and next element ID to move the focus to
|
||||||
* when pressing the Tab key in TinyMCE. Defualt ':prev,:next'.
|
* when pressing the Tab key in TinyMCE. Default ':prev,:next'.
|
||||||
* @type string $editor_css Intended for extra styles for both Visual and Text editors.
|
* @type string $editor_css Intended for extra styles for both Visual and Text editors.
|
||||||
* Should include `<style>` tags, and can use "scoped". Default empty.
|
* Should include `<style>` tags, and can use "scoped". Default empty.
|
||||||
* @type string $editor_class Extra classes to add to the editor textarea elemen. Default empty.
|
* @type string $editor_class Extra classes to add to the editor textarea element. Default empty.
|
||||||
* @type bool $teeny Whether to output the minimal editor config. Examples include
|
* @type bool $teeny Whether to output the minimal editor config. Examples include
|
||||||
* Press This and the Comment editor. Default false.
|
* Press This and the Comment editor. Default false.
|
||||||
* @type bool $dfw Deprecated in 4.1. Since 4.3 used only to enqueue wp-fullscreen-stub.js for backwards compatibility.
|
* @type bool $dfw Deprecated in 4.1. Since 4.3 used only to enqueue wp-fullscreen-stub.js for backwards compatibility.
|
||||||
|
|
|
@ -1015,7 +1015,7 @@ function get_search_link( $query = '' ) {
|
||||||
$link = home_url('?s=' . urlencode($search) );
|
$link = home_url('?s=' . urlencode($search) );
|
||||||
} else {
|
} else {
|
||||||
$search = urlencode($search);
|
$search = urlencode($search);
|
||||||
$search = str_replace('%2F', '/', $search); // %2F(/) is not valid within a URL, send it unencoded.
|
$search = str_replace('%2F', '/', $search); // %2F(/) is not valid within a URL, send it un-encoded.
|
||||||
$link = str_replace( '%search%', $search, $permastruct );
|
$link = str_replace( '%search%', $search, $permastruct );
|
||||||
$link = home_url( user_trailingslashit( $link, 'search' ) );
|
$link = home_url( user_trailingslashit( $link, 'search' ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -279,7 +279,7 @@ function _wp_relative_upload_path( $path ) {
|
||||||
* Attachments may also be made the child of a post, so if that is an accurate
|
* Attachments may also be made the child of a post, so if that is an accurate
|
||||||
* statement (which needs to be verified), it would then be possible to get
|
* statement (which needs to be verified), it would then be possible to get
|
||||||
* all of the attachments for a post. Attachments have since changed since
|
* all of the attachments for a post. Attachments have since changed since
|
||||||
* version 2.5, so this is most likely unaccurate, but serves generally as an
|
* version 2.5, so this is most likely inaccurate, but serves generally as an
|
||||||
* example of what is possible.
|
* example of what is possible.
|
||||||
*
|
*
|
||||||
* The arguments listed as defaults are for this function and also of the
|
* The arguments listed as defaults are for this function and also of the
|
||||||
|
@ -385,7 +385,7 @@ function get_children( $args = '', $output = OBJECT ) {
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*
|
*
|
||||||
* @param string $post Post content.
|
* @param string $post Post content.
|
||||||
* @return array Post before ('main'), after ('extended'), and custom readmore ('more_text').
|
* @return array Post before ('main'), after ('extended'), and custom read more ('more_text').
|
||||||
*/
|
*/
|
||||||
function get_extended( $post ) {
|
function get_extended( $post ) {
|
||||||
//Match the new style more links.
|
//Match the new style more links.
|
||||||
|
@ -2733,7 +2733,7 @@ function wp_get_post_categories( $post_id = 0, $args = array() ) {
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param int $post_id Optional. The Post ID. Does not default to the ID of the
|
* @param int $post_id Optional. The Post ID. Does not default to the ID of the
|
||||||
* global $post. Defualt 0.
|
* global $post. Default 0.
|
||||||
* @param array $args Optional. Overwrite the defaults
|
* @param array $args Optional. Overwrite the defaults
|
||||||
* @return array List of post tags.
|
* @return array List of post tags.
|
||||||
*/
|
*/
|
||||||
|
@ -3497,7 +3497,7 @@ function check_and_publish_future_post( $post_id ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// wp_publish_post(_ returns no meaninful value
|
// wp_publish_post(_ returns no meaningful value.
|
||||||
wp_publish_post( $post_id );
|
wp_publish_post( $post_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34716';
|
$wp_version = '4.4-alpha-34717';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue