Ticket #38489: fix-spelling-wp-includes.2.diff
File fix-spelling-wp-includes.2.diff, 16.0 KB (added by , 8 years ago) |
---|
-
src/wp-includes/cache.php
254 254 * This function is deprecated. Use wp_cache_switch_to_blog() instead of this 255 255 * function when preparing the cache for a blog switch. For clearing the cache 256 256 * during unit tests, consider using wp_cache_init(). wp_cache_init() is not 257 * recommended outside of unit tests as the performance penal ity for using it is257 * recommended outside of unit tests as the performance penalty for using it is 258 258 * high. 259 259 * 260 260 * @since 2.6.0 -
src/wp-includes/class-pop3.php
430 430 if(!$this->is_ok($reply)) 431 431 { 432 432 // The POP3 RSET command -never- gives a -ERR 433 // response - if it ever does, something tru ely433 // response - if it ever does, something truly 434 434 // wild is going on. 435 435 436 436 $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]"; -
src/wp-includes/class-walker-page.php
49 49 * 50 50 * @param string $output Passed by reference. Used to append additional content. 51 51 * @param int $depth Optional. Depth of page. Used for padding. Default 0. 52 * @param array $args Optional. Arguments for output ing the next level.52 * @param array $args Optional. Arguments for outputting the next level. 53 53 * Default empty array. 54 54 */ 55 55 public function start_lvl( &$output, $depth = 0, $args = array() ) { -
src/wp-includes/class-wp-customize-control.php
457 457 /** 458 458 * Render the control's content. 459 459 * 460 * Allows the content to be overrid en without having to rewrite the wrapper in `$this::render()`.460 * Allows the content to be overridden without having to rewrite the wrapper in `$this::render()`. 461 461 * 462 462 * Supports basic input types `text`, `checkbox`, `textarea`, `radio`, `select` and `dropdown-pages`. 463 463 * Additional input types such as `email`, `url`, `number`, `hidden` and `date` are supported implicitly. -
src/wp-includes/class-wp-widget.php
10 10 /** 11 11 * Core base class extended to register widgets. 12 12 * 13 * This class must be extended for each widget, and WP_Widget::widget() must be overrid en.13 * This class must be extended for each widget, and WP_Widget::widget() must be overridden. 14 14 * 15 15 * If adding widget options, WP_Widget::update() and WP_Widget::form() should also be overridden. 16 16 * … … 104 104 public $updated = false; 105 105 106 106 // 107 // Member functions that must be overrid en by subclasses.107 // Member functions that must be overridden by subclasses. 108 108 // 109 109 110 110 /** -
src/wp-includes/css/editor.css
1321 1321 1322 1322 @media screen and ( min-width: 782px ) { 1323 1323 .wp-core-ui .quicktags-toolbar input.button.button-small { 1324 /* .button-small is normal y 11px, but a bit too small for these buttons. */1324 /* .button-small is normally 11px, but a bit too small for these buttons. */ 1325 1325 font-size: 12px; 1326 1326 height: 26px; 1327 1327 line-height: 24px; -
src/wp-includes/customize/class-wp-customize-themes-panel.php
72 72 ?> 73 73 <li class="filter-themes-count"> 74 74 <span class="themes-displayed"><?php 75 /* translators: %s: number of themes displayed; plural forms cannot be accom odated here so assume plurality or translate as "Themes: %s" */75 /* translators: %s: number of themes displayed; plural forms cannot be accommodated here so assume plurality or translate as "Themes: %s" */ 76 76 echo sprintf( __( 'Displaying %s themes' ), '<span class="theme-count">0</span>' ); 77 77 ?></span> 78 78 <button type="button" class="button button-primary see-themes"><?php 79 /* translators: %s: number of themes displayed; plural forms cannot be accom odated here so assume plurality or omit the count and translate as "Show themes" */79 /* translators: %s: number of themes displayed; plural forms cannot be accommodated here so assume plurality or omit the count and translate as "Show themes" */ 80 80 echo sprintf( __( 'Show %s themes' ), '<span class="theme-count">0</span>' ); 81 81 ?></button> 82 82 <button type="button" class="button button-primary filter-themes"><?php _e( 'Filter themes' ); ?></button> -
src/wp-includes/deprecated.php
3763 3763 * Retrieve path of paged template in current or parent template. 3764 3764 * 3765 3765 * @since 1.5.0 3766 * @deprecated 4.7.0 The paged.php template is no longer part of the theme template h eirarchy.3766 * @deprecated 4.7.0 The paged.php template is no longer part of the theme template hierarchy. 3767 3767 * 3768 3768 * @return string Full path to paged template file. 3769 3769 */ -
src/wp-includes/js/customize-base.js
165 165 /** 166 166 * Observable values that support two-way binding. 167 167 * 168 * @const uctor168 * @constructor 169 169 */ 170 170 api.Value = api.Class.extend({ 171 171 /** … … 304 304 /** 305 305 * A collection of observable values. 306 306 * 307 * @const uctor307 * @constructor 308 308 * @augments wp.customize.Class 309 309 * @mixes wp.customize.Events 310 310 */ … … 520 520 * 521 521 * Handles inputs, selects, and textareas by default. 522 522 * 523 * @const uctor523 * @constructor 524 524 * @augments wp.customize.Value 525 525 * @augments wp.customize.Class 526 526 */ … … 617 617 /** 618 618 * A communicator for sending data from one window to another over postMessage. 619 619 * 620 * @const uctor620 * @constructor 621 621 * @augments wp.customize.Class 622 622 * @mixes wp.customize.Events 623 623 */ -
src/wp-includes/js/customize-selective-refresh.js
272 272 } 273 273 274 274 /* jshint ignore:start */ 275 self.or ginalDocumentWrite = document.write;275 self.originalDocumentWrite = document.write; 276 276 document.write = function() { 277 277 throw new Error( self.data.l10n.badDocumentWrite ); 278 278 }; … … 315 315 } 316 316 } 317 317 /* jshint ignore:start */ 318 document.write = self.or ginalDocumentWrite;319 self.or ginalDocumentWrite = null;318 document.write = self.originalDocumentWrite; 319 self.originalDocumentWrite = null; 320 320 /* jshint ignore:end */ 321 321 322 322 placement.container.removeClass( 'customize-partial-refreshing' ); -
src/wp-includes/js/heartbeat.js
131 131 // Needed for some hosts that cannot handle frequent requests and the user may exceed the allocated server CPU time, etc. 132 132 // The minimal interval can be up to 600 sec. however setting it to longer than 120 sec. will limit or disable 133 133 // some of the functionality (like post locks). 134 // Once set at initialization, minimalInterval cannot be changed/overrid en.134 // Once set at initialization, minimalInterval cannot be changed/overridden. 135 135 if ( options.minimalInterval ) { 136 136 options.minimalInterval = parseInt( options.minimalInterval, 10 ); 137 137 settings.minimalInterval = options.minimalInterval > 0 && options.minimalInterval <= 600 ? options.minimalInterval * 1000 : 0; -
src/wp-includes/js/imgareaselect/jquery.imgareaselect.js
1206 1206 $(this).data('imgAreaSelect').setOptions(options); 1207 1207 } 1208 1208 else if (!options.remove) { 1209 /* No exis ing instance -- create a new one */1209 /* No existing instance -- create a new one */ 1210 1210 1211 1211 /* 1212 1212 * If neither the "enable" nor the "disable" option is present, add -
src/wp-includes/js/mce-view.js
294 294 initialize: function() {}, 295 295 296 296 /** 297 * Retu ns the content to render in the view node.297 * Returns the content to render in the view node. 298 298 * 299 299 * @return {*} 300 300 */ -
src/wp-includes/js/media/models/attachments.js
296 296 delete this.mirroring; 297 297 }, 298 298 /** 299 * Retri ve more attachments from the server for the collection.299 * Retrieve more attachments from the server for the collection. 300 300 * 301 301 * Only works if the collection is mirroring a Query Attachments collection, 302 302 * and forwards to its `more` method. This collection class doesn't have -
src/wp-includes/js/media-models.js
696 696 delete this.mirroring; 697 697 }, 698 698 /** 699 * Retri ve more attachments from the server for the collection.699 * Retrieve more attachments from the server for the collection. 700 700 * 701 701 * Only works if the collection is mirroring a Query Attachments collection, 702 702 * and forwards to its `more` method. This collection class doesn't have -
src/wp-includes/js/utils.js
110 110 if ( typeof( expires ) === 'object' && expires.toGMTString ) { 111 111 expires = expires.toGMTString(); 112 112 } else if ( parseInt( expires, 10 ) ) { 113 d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in mil iseconds113 d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in milliseconds 114 114 expires = d.toGMTString(); 115 115 } else { 116 116 expires = ''; -
src/wp-includes/js/wp-api.js
422 422 }, 423 423 424 424 /** 425 * Add a helper fun tion to handle post Meta.425 * Add a helper function to handle post Meta. 426 426 */ 427 427 MetaMixin = { 428 428 getMeta: function() { … … 431 431 }, 432 432 433 433 /** 434 * Add a helper fun tion to handle post Revisions.434 * Add a helper function to handle post Revisions. 435 435 */ 436 436 RevisionsMixin = { 437 437 getRevisions: function() { … … 440 440 }, 441 441 442 442 /** 443 * Add a helper fun tion to handle post Tags.443 * Add a helper function to handle post Tags. 444 444 */ 445 445 TagsMixin = { 446 446 … … 524 524 }, 525 525 526 526 /** 527 * Add a helper fun tion to handle post Categories.527 * Add a helper function to handle post Categories. 528 528 */ 529 529 CategoriesMixin = { 530 530 -
src/wp-includes/pluggable.php
1730 1730 @wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] New User Registration' ), $blogname ), $message ); 1731 1731 } 1732 1732 1733 // `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notif cation.1733 // `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notification. 1734 1734 if ( 'admin' === $notify || ( empty( $deprecated ) && empty( $notify ) ) ) { 1735 1735 return; 1736 1736 } -
src/wp-includes/pomo/translations.php
102 102 * Here, in the base Translations class, the common logic for English is implemented: 103 103 * 0 if there is one element, 1 otherwise 104 104 * 105 * This function should be overrid edby the sub-classes. For example MO/PO can derive the logic105 * This function should be overridden by the sub-classes. For example MO/PO can derive the logic 106 106 * from their headers. 107 107 * 108 108 * @param integer $count number of items -
src/wp-includes/rest-api/class-wp-rest-server.php
641 641 * @param string $namespace Namespace. 642 642 * @param string $route The REST route. 643 643 * @param array $route_args Route arguments. 644 * @param bool $override Optional. Whether the route should be overrid en if it already exists.644 * @param bool $override Optional. Whether the route should be overridden if it already exists. 645 645 * Default false. 646 646 */ 647 647 public function register_route( $namespace, $route, $route_args, $override = false ) { -
src/wp-includes/rss.php
741 741 /*=======================================================================*\ 742 742 Function: set 743 743 Purpose: add an item to the cache, keyed on url 744 Input: url from w ich the rss file was fetched744 Input: url from which the rss file was fetched 745 745 Output: true on success 746 746 \*=======================================================================*/ 747 747 function set ($url, $rss) { … … 755 755 /*=======================================================================*\ 756 756 Function: get 757 757 Purpose: fetch an item from the cache 758 Input: url from w ich the rss file was fetched758 Input: url from which the rss file was fetched 759 759 Output: cached object on HIT, false on MISS 760 760 \*=======================================================================*/ 761 761 function get ($url) { … … 776 776 Function: check_cache 777 777 Purpose: check a url for membership in the cache 778 778 and whether the object is older then MAX_AGE (ie. STALE) 779 Input: url from w ich the rss file was fetched779 Input: url from which the rss file was fetched 780 780 Output: cached object on HIT, false on MISS 781 781 \*=======================================================================*/ 782 782 function check_cache ( $url ) { … … 809 809 /*=======================================================================*\ 810 810 Function: file_name 811 811 Purpose: map url to location in cache 812 Input: url from w ich the rss file was fetched812 Input: url from which the rss file was fetched 813 813 Output: a file name 814 814 \*=======================================================================*/ 815 815 function file_name ($url) {