mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01:00
Docs: Fix multiple trivial typos throughout a variety of core files.
Props ottok. Fixes #38489. Built from https://develop.svn.wordpress.org/trunk@39051 git-svn-id: http://core.svn.wordpress.org/trunk@38993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c7691ceb36
commit
5f4497f0af
@ -254,7 +254,7 @@ function wp_cache_add_non_persistent_groups( $groups ) {
|
||||
* This function is deprecated. Use wp_cache_switch_to_blog() instead of this
|
||||
* function when preparing the cache for a blog switch. For clearing the cache
|
||||
* during unit tests, consider using wp_cache_init(). wp_cache_init() is not
|
||||
* recommended outside of unit tests as the performance penality for using it is
|
||||
* recommended outside of unit tests as the performance penalty for using it is
|
||||
* high.
|
||||
*
|
||||
* @since 2.6.0
|
||||
|
@ -430,7 +430,7 @@ class POP3 {
|
||||
if(!$this->is_ok($reply))
|
||||
{
|
||||
// The POP3 RSET command -never- gives a -ERR
|
||||
// response - if it ever does, something truely
|
||||
// response - if it ever does, something truly
|
||||
// wild is going on.
|
||||
|
||||
$this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]";
|
||||
|
@ -49,7 +49,7 @@ class Walker_Page extends Walker {
|
||||
*
|
||||
* @param string $output Passed by reference. Used to append additional content.
|
||||
* @param int $depth Optional. Depth of page. Used for padding. Default 0.
|
||||
* @param array $args Optional. Arguments for outputing the next level.
|
||||
* @param array $args Optional. Arguments for outputting the next level.
|
||||
* Default empty array.
|
||||
*/
|
||||
public function start_lvl( &$output, $depth = 0, $args = array() ) {
|
||||
|
@ -457,7 +457,7 @@ class WP_Customize_Control {
|
||||
/**
|
||||
* Render the control's content.
|
||||
*
|
||||
* Allows the content to be overriden without having to rewrite the wrapper in `$this::render()`.
|
||||
* Allows the content to be overridden without having to rewrite the wrapper in `$this::render()`.
|
||||
*
|
||||
* Supports basic input types `text`, `checkbox`, `textarea`, `radio`, `select` and `dropdown-pages`.
|
||||
* Additional input types such as `email`, `url`, `number`, `hidden` and `date` are supported implicitly.
|
||||
|
@ -10,7 +10,7 @@
|
||||
/**
|
||||
* Core base class extended to register widgets.
|
||||
*
|
||||
* This class must be extended for each widget, and WP_Widget::widget() must be overriden.
|
||||
* This class must be extended for each widget, and WP_Widget::widget() must be overridden.
|
||||
*
|
||||
* If adding widget options, WP_Widget::update() and WP_Widget::form() should also be overridden.
|
||||
*
|
||||
@ -104,7 +104,7 @@ class WP_Widget {
|
||||
public $updated = false;
|
||||
|
||||
//
|
||||
// Member functions that must be overriden by subclasses.
|
||||
// Member functions that must be overridden by subclasses.
|
||||
//
|
||||
|
||||
/**
|
||||
|
@ -1322,7 +1322,7 @@ i.mce-i-wp_code:before {
|
||||
|
||||
@media screen and ( min-width: 782px ) {
|
||||
.wp-core-ui .quicktags-toolbar input.button.button-small {
|
||||
/* .button-small is normaly 11px, but a bit too small for these buttons. */
|
||||
/* .button-small is normally 11px, but a bit too small for these buttons. */
|
||||
font-size: 12px;
|
||||
height: 26px;
|
||||
line-height: 24px;
|
||||
|
@ -1322,7 +1322,7 @@ i.mce-i-wp_code:before {
|
||||
|
||||
@media screen and ( min-width: 782px ) {
|
||||
.wp-core-ui .quicktags-toolbar input.button.button-small {
|
||||
/* .button-small is normaly 11px, but a bit too small for these buttons. */
|
||||
/* .button-small is normally 11px, but a bit too small for these buttons. */
|
||||
font-size: 12px;
|
||||
height: 26px;
|
||||
line-height: 24px;
|
||||
|
@ -72,11 +72,11 @@ class WP_Customize_Themes_Panel extends WP_Customize_Panel {
|
||||
?>
|
||||
<li class="filter-themes-count">
|
||||
<span class="themes-displayed"><?php
|
||||
/* translators: %s: number of themes displayed; plural forms cannot be accomodated here so assume plurality or translate as "Themes: %s" */
|
||||
/* translators: %s: number of themes displayed; plural forms cannot be accommodated here so assume plurality or translate as "Themes: %s" */
|
||||
echo sprintf( __( 'Displaying %s themes' ), '<span class="theme-count">0</span>' );
|
||||
?></span>
|
||||
<button type="button" class="button button-primary see-themes"><?php
|
||||
/* translators: %s: number of themes displayed; plural forms cannot be accomodated here so assume plurality or omit the count and translate as "Show themes" */
|
||||
/* translators: %s: number of themes displayed; plural forms cannot be accommodated here so assume plurality or omit the count and translate as "Show themes" */
|
||||
echo sprintf( __( 'Show %s themes' ), '<span class="theme-count">0</span>' );
|
||||
?></button>
|
||||
<button type="button" class="button button-primary filter-themes"><?php _e( 'Filter themes' ); ?></button>
|
||||
|
@ -3763,7 +3763,7 @@ function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
|
||||
* Retrieve path of paged template in current or parent template.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @deprecated 4.7.0 The paged.php template is no longer part of the theme template heirarchy.
|
||||
* @deprecated 4.7.0 The paged.php template is no longer part of the theme template hierarchy.
|
||||
*
|
||||
* @return string Full path to paged template file.
|
||||
*/
|
||||
|
@ -165,7 +165,7 @@ window.wp = window.wp || {};
|
||||
/**
|
||||
* Observable values that support two-way binding.
|
||||
*
|
||||
* @constuctor
|
||||
* @constructor
|
||||
*/
|
||||
api.Value = api.Class.extend({
|
||||
/**
|
||||
@ -304,7 +304,7 @@ window.wp = window.wp || {};
|
||||
/**
|
||||
* A collection of observable values.
|
||||
*
|
||||
* @constuctor
|
||||
* @constructor
|
||||
* @augments wp.customize.Class
|
||||
* @mixes wp.customize.Events
|
||||
*/
|
||||
@ -520,7 +520,7 @@ window.wp = window.wp || {};
|
||||
*
|
||||
* Handles inputs, selects, and textareas by default.
|
||||
*
|
||||
* @constuctor
|
||||
* @constructor
|
||||
* @augments wp.customize.Value
|
||||
* @augments wp.customize.Class
|
||||
*/
|
||||
@ -617,7 +617,7 @@ window.wp = window.wp || {};
|
||||
/**
|
||||
* A communicator for sending data from one window to another over postMessage.
|
||||
*
|
||||
* @constuctor
|
||||
* @constructor
|
||||
* @augments wp.customize.Class
|
||||
* @mixes wp.customize.Events
|
||||
*/
|
||||
|
@ -131,7 +131,7 @@
|
||||
// Needed for some hosts that cannot handle frequent requests and the user may exceed the allocated server CPU time, etc.
|
||||
// The minimal interval can be up to 600 sec. however setting it to longer than 120 sec. will limit or disable
|
||||
// some of the functionality (like post locks).
|
||||
// Once set at initialization, minimalInterval cannot be changed/overriden.
|
||||
// Once set at initialization, minimalInterval cannot be changed/overridden.
|
||||
if ( options.minimalInterval ) {
|
||||
options.minimalInterval = parseInt( options.minimalInterval, 10 );
|
||||
settings.minimalInterval = options.minimalInterval > 0 && options.minimalInterval <= 600 ? options.minimalInterval * 1000 : 0;
|
||||
|
@ -294,7 +294,7 @@
|
||||
initialize: function() {},
|
||||
|
||||
/**
|
||||
* Retuns the content to render in the view node.
|
||||
* Returns the content to render in the view node.
|
||||
*
|
||||
* @return {*}
|
||||
*/
|
||||
|
@ -696,7 +696,7 @@ var Attachments = Backbone.Collection.extend({
|
||||
delete this.mirroring;
|
||||
},
|
||||
/**
|
||||
* Retrive more attachments from the server for the collection.
|
||||
* Retrieve more attachments from the server for the collection.
|
||||
*
|
||||
* Only works if the collection is mirroring a Query Attachments collection,
|
||||
* and forwards to its `more` method. This collection class doesn't have
|
||||
|
@ -110,7 +110,7 @@ var wpCookies = {
|
||||
if ( typeof( expires ) === 'object' && expires.toGMTString ) {
|
||||
expires = expires.toGMTString();
|
||||
} else if ( parseInt( expires, 10 ) ) {
|
||||
d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in miliseconds
|
||||
d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in milliseconds
|
||||
expires = d.toGMTString();
|
||||
} else {
|
||||
expires = '';
|
||||
|
@ -422,7 +422,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* Add a helper funtion to handle post Meta.
|
||||
* Add a helper function to handle post Meta.
|
||||
*/
|
||||
MetaMixin = {
|
||||
getMeta: function() {
|
||||
@ -431,7 +431,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* Add a helper funtion to handle post Revisions.
|
||||
* Add a helper function to handle post Revisions.
|
||||
*/
|
||||
RevisionsMixin = {
|
||||
getRevisions: function() {
|
||||
@ -440,7 +440,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* Add a helper funtion to handle post Tags.
|
||||
* Add a helper function to handle post Tags.
|
||||
*/
|
||||
TagsMixin = {
|
||||
|
||||
@ -524,7 +524,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* Add a helper funtion to handle post Categories.
|
||||
* Add a helper function to handle post Categories.
|
||||
*/
|
||||
CategoriesMixin = {
|
||||
|
||||
|
@ -1747,7 +1747,7 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
|
||||
}
|
||||
}
|
||||
|
||||
// `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notifcation.
|
||||
// `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notification.
|
||||
if ( 'admin' === $notify || ( empty( $deprecated ) && empty( $notify ) ) ) {
|
||||
return;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class Translations {
|
||||
* Here, in the base Translations class, the common logic for English is implemented:
|
||||
* 0 if there is one element, 1 otherwise
|
||||
*
|
||||
* This function should be overrided by the sub-classes. For example MO/PO can derive the logic
|
||||
* This function should be overridden by the sub-classes. For example MO/PO can derive the logic
|
||||
* from their headers.
|
||||
*
|
||||
* @param integer $count number of items
|
||||
|
@ -639,7 +639,7 @@ class WP_REST_Server {
|
||||
* @param string $namespace Namespace.
|
||||
* @param string $route The REST route.
|
||||
* @param array $route_args Route arguments.
|
||||
* @param bool $override Optional. Whether the route should be overriden if it already exists.
|
||||
* @param bool $override Optional. Whether the route should be overridden if it already exists.
|
||||
* Default false.
|
||||
*/
|
||||
public function register_route( $namespace, $route, $route_args, $override = false ) {
|
||||
|
@ -741,7 +741,7 @@ class RSSCache {
|
||||
/*=======================================================================*\
|
||||
Function: set
|
||||
Purpose: add an item to the cache, keyed on url
|
||||
Input: url from wich the rss file was fetched
|
||||
Input: url from which the rss file was fetched
|
||||
Output: true on success
|
||||
\*=======================================================================*/
|
||||
function set ($url, $rss) {
|
||||
@ -755,7 +755,7 @@ class RSSCache {
|
||||
/*=======================================================================*\
|
||||
Function: get
|
||||
Purpose: fetch an item from the cache
|
||||
Input: url from wich the rss file was fetched
|
||||
Input: url from which the rss file was fetched
|
||||
Output: cached object on HIT, false on MISS
|
||||
\*=======================================================================*/
|
||||
function get ($url) {
|
||||
@ -776,7 +776,7 @@ class RSSCache {
|
||||
Function: check_cache
|
||||
Purpose: check a url for membership in the cache
|
||||
and whether the object is older then MAX_AGE (ie. STALE)
|
||||
Input: url from wich the rss file was fetched
|
||||
Input: url from which the rss file was fetched
|
||||
Output: cached object on HIT, false on MISS
|
||||
\*=======================================================================*/
|
||||
function check_cache ( $url ) {
|
||||
@ -809,7 +809,7 @@ class RSSCache {
|
||||
/*=======================================================================*\
|
||||
Function: file_name
|
||||
Purpose: map url to location in cache
|
||||
Input: url from wich the rss file was fetched
|
||||
Input: url from which the rss file was fetched
|
||||
Output: a file name
|
||||
\*=======================================================================*/
|
||||
function file_name ($url) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta1-39050';
|
||||
$wp_version = '4.7-beta1-39051';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user