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

See #49572.
Built from https://develop.svn.wordpress.org/trunk@48106


git-svn-id: http://core.svn.wordpress.org/trunk@47875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-20 12:16:10 +00:00
parent 26621b3b44
commit 3fb623cf76
7 changed files with 10 additions and 10 deletions

View File

@ -270,7 +270,7 @@ themes.Collection = Backbone.Collection.extend({
// it means we have a paginated request. // it means we have a paginated request.
isPaginated = _.has( request, 'page' ); 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 ) { if ( ! isPaginated ) {
this.currentQuery.page = 1; this.currentQuery.page = 1;
} }

View File

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

View File

@ -75,7 +75,7 @@ twentytwenty.touchEnabled = {
init: function() { init: function() {
var matchMedia = 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 prefixes = [ '-webkit-', '-moz-', '-o-', '-ms-' ];
var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' ); var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' );
return window.matchMedia && window.matchMedia( query ).matches; return window.matchMedia && window.matchMedia( query ).matches;

View File

@ -120,7 +120,7 @@
var format; var format;
var zero; 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 ) { if ( ! node || node.nodeType !== 3 || ! node.data.length || ! offset ) {
return; return;
} }

View File

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

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 * The dynamic portion of the hook, `$object_type`, refers to the object
* type (post, comment, term, or user). * type (post, comment, term, or user).

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-48105'; $wp_version = '5.5-alpha-48106';
/** /**
* 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.