From 3fb623cf76cdaab93238ee63e992007c045f0ae3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 20 Jun 2020 12:16:10 +0000 Subject: [PATCH] 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 --- wp-admin/js/theme.js | 2 +- .../themes/twentynineteen/inc/template-functions.php | 2 +- wp-content/themes/twentytwenty/assets/js/index.js | 2 +- wp-includes/js/tinymce/plugins/wptextpattern/plugin.js | 2 +- wp-includes/js/wp-api.js | 8 ++++---- wp-includes/meta.php | 2 +- wp-includes/version.php | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js index a7481053b4..b93b53ca30 100644 --- a/wp-admin/js/theme.js +++ b/wp-admin/js/theme.js @@ -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; } diff --git a/wp-content/themes/twentynineteen/inc/template-functions.php b/wp-content/themes/twentynineteen/inc/template-functions.php index 18db0ccdb5..2c33ff06c4 100644 --- a/wp-content/themes/twentynineteen/inc/template-functions.php +++ b/wp-content/themes/twentynineteen/inc/template-functions.php @@ -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'; } diff --git a/wp-content/themes/twentytwenty/assets/js/index.js b/wp-content/themes/twentytwenty/assets/js/index.js index c6f7a0a909..5b2a9b2278 100644 --- a/wp-content/themes/twentytwenty/assets/js/index.js +++ b/wp-content/themes/twentytwenty/assets/js/index.js @@ -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 . + // Include the 'heartz' as a way to have a non-matching MQ to help terminate the join. See . var prefixes = [ '-webkit-', '-moz-', '-o-', '-ms-' ]; var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' ); return window.matchMedia && window.matchMedia( query ).matches; diff --git a/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js b/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js index a11515acb1..6f6c73875d 100644 --- a/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js +++ b/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js @@ -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; } diff --git a/wp-includes/js/wp-api.js b/wp-includes/js/wp-api.js index b41d18e625..002fb477d4 100644 --- a/wp-includes/js/wp-api.js +++ b/wp-includes/js/wp-api.js @@ -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; } diff --git a/wp-includes/meta.php b/wp-includes/meta.php index e9d3568455..e31e6d4a1a 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -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). diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ccde3b2ac..3791e0bf04 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.