Docs: Use a hyphen with the "non" prefix in a more consistent way.

See #49572.

git-svn-id: https://develop.svn.wordpress.org/trunk@48106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-20 12:13:58 +00:00
parent e27ad0f007
commit c682da9190
7 changed files with 10 additions and 10 deletions

View File

@ -120,7 +120,7 @@
var format;
var zero;
// We need a non empty text node with an offset greater than zero.
// We need a non-empty text node with an offset greater than zero.
if ( ! node || node.nodeType !== 3 || ! node.data.length || ! offset ) {
return;
}

View File

@ -248,7 +248,7 @@
// Add post and edit endpoints as model args.
if ( _.includes( routeEndpoint.methods, 'POST' ) || _.includes( routeEndpoint.methods, 'PUT' ) ) {
// Add any non empty args, merging them into the args object.
// Add any non-empty args, merging them into the args object.
if ( ! _.isEmpty( routeEndpoint.args ) ) {
// Set as default if no args yet.
@ -265,7 +265,7 @@
// Add GET method as model options.
if ( _.includes( routeEndpoint.methods, 'GET' ) ) {
// Add any non empty args, merging them into the defaults object.
// Add any non-empty args, merging them into the defaults object.
if ( ! _.isEmpty( routeEndpoint.args ) ) {
// Set as default if no defaults yet.
@ -327,7 +327,7 @@
setDate: function( date, field ) {
var theField = field || 'date';
// Don't alter non parsable date fields.
// Don't alter non-parsable date fields.
if ( _.indexOf( parseableDates, theField ) < 0 ) {
return false;
}
@ -348,7 +348,7 @@
var theField = field || 'date',
theISODate = this.get( theField );
// Only get date fields and non null values.
// Only get date fields and non-null values.
if ( _.indexOf( parseableDates, theField ) < 0 || _.isNull( theISODate ) ) {
return false;
}

View File

@ -270,7 +270,7 @@ themes.Collection = Backbone.Collection.extend({
// it means we have a paginated request.
isPaginated = _.has( request, 'page' );
// Reset the internal api page counter for non paginated queries.
// Reset the internal api page counter for non-paginated queries.
if ( ! isPaginated ) {
this.currentQuery.page = 1;
}

View File

@ -19,7 +19,7 @@ function twentynineteen_body_classes( $classes ) {
// Adds `singular` to singular pages.
$classes[] = 'singular';
} else {
// Adds `hfeed` to non singular pages.
// Adds `hfeed` to non-singular pages.
$classes[] = 'hfeed';
}

View File

@ -75,7 +75,7 @@ twentytwenty.touchEnabled = {
init: function() {
var matchMedia = function() {
// Include the 'heartz' as a way to have a non matching MQ to help terminate the join. See <https://git.io/vznFH>.
// Include the 'heartz' as a way to have a non-matching MQ to help terminate the join. See <https://git.io/vznFH>.
var prefixes = [ '-webkit-', '-moz-', '-o-', '-ms-' ];
var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' );
return window.matchMedia && window.matchMedia( query ).matches;

View File

@ -1464,7 +1464,7 @@ function get_object_subtype( $object_type, $object_id ) {
}
/**
* Filters the object subtype identifier for a non standard object type.
* Filters the object subtype identifier for a non-standard object type.
*
* The dynamic portion of the hook, `$object_type`, refers to the object
* type (post, comment, term, or user).

View File

@ -47,7 +47,7 @@ class REST_Block_Renderer_Controller_Test extends WP_Test_REST_Controller_Testca
protected static $context_block_name = 'core/context-test-block';
/**
* Non dynamic block name.
* Non-dynamic block name.
*
* @since 5.5.0
*