From c65f40956e66ec9b7a7cdc56424fdd8d3063efe2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 4 Jul 2020 19:09:07 +0000 Subject: [PATCH] Coding Standards: Rename functions in `wp-admin/js/site-health.js` per the JS coding standards. See #49542. Built from https://develop.svn.wordpress.org/trunk@48297 git-svn-id: http://core.svn.wordpress.org/trunk@48066 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/site-health.js | 28 ++++++++++++++-------------- wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/wp-admin/js/site-health.js b/wp-admin/js/site-health.js index 4e70556d39..1a8567fed8 100644 --- a/wp-admin/js/site-health.js +++ b/wp-admin/js/site-health.js @@ -67,18 +67,18 @@ jQuery( document ).ready( function( $ ) { } ); /** - * Append a new issue to the issue list. + * Appends a new issue to the issue list. * * @since 5.2.0 * * @param {Object} issue The issue data. */ - function AppendIssue( issue ) { + function appendIssue( issue ) { var template = wp.template( 'health-check-issue' ), issueWrapper = $( '#health-check-issues-' + issue.status ), heading, count; - + SiteHealth.site_status.issues[ issue.status ]++; count = SiteHealth.site_status.issues[ issue.status ]; @@ -99,11 +99,11 @@ jQuery( document ).ready( function( $ ) { } /** - * Update site health status indicator as asynchronous tests are run and returned. + * Updates site health status indicator as asynchronous tests are run and returned. * * @since 5.2.0 */ - function RecalculateProgression() { + function recalculateProgression() { var r, c, pct; var $progress = $( '.site-health-progress' ); var $wrapper = $progress.closest( '.site-health-progress-wrapper' ); @@ -172,7 +172,7 @@ jQuery( document ).ready( function( $ ) { } /** - * Queue the next asynchronous test when we're ready to run it. + * Queues the next asynchronous test when we're ready to run it. * * @since 5.2.0 */ @@ -199,7 +199,7 @@ jQuery( document ).ready( function( $ ) { data, function( response ) { /** This filter is documented in wp-admin/includes/class-wp-site-health.php */ - AppendIssue( wp.hooks.applyFilters( 'site_status_test_result', response.data ) ); + appendIssue( wp.hooks.applyFilters( 'site_status_test_result', response.data ) ); maybeRunNextAsyncTest(); } ); @@ -209,13 +209,13 @@ jQuery( document ).ready( function( $ ) { } if ( doCalculation ) { - RecalculateProgression(); + recalculateProgression(); } } if ( 'undefined' !== typeof SiteHealth && ! isDebugTab ) { if ( 0 === SiteHealth.site_status.direct.length && 0 === SiteHealth.site_status.async.length ) { - RecalculateProgression(); + recalculateProgression(); } else { SiteHealth.site_status.issues = { 'good': 0, @@ -226,7 +226,7 @@ jQuery( document ).ready( function( $ ) { if ( 0 < SiteHealth.site_status.direct.length ) { $.each( SiteHealth.site_status.direct, function() { - AppendIssue( this ); + appendIssue( this ); } ); } @@ -242,12 +242,12 @@ jQuery( document ).ready( function( $ ) { ajaxurl, data, function( response ) { - AppendIssue( response.data ); + appendIssue( response.data ); maybeRunNextAsyncTest(); } ); } else { - RecalculateProgression(); + recalculateProgression(); } } @@ -275,7 +275,7 @@ jQuery( document ).ready( function( $ ) { var delay = ( new Date().getTime() ) - timestamp; $( '.health-check-wp-paths-sizes.spinner' ).css( 'visibility', 'hidden' ); - RecalculateProgression(); + recalculateProgression(); if ( delay > 3000 ) { /* @@ -329,7 +329,7 @@ jQuery( document ).ready( function( $ ) { if ( pathsSizesSection.length ) { getDirectorySizes(); } else { - RecalculateProgression(); + recalculateProgression(); } } } ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 73b2b9d366..d6ecd9573e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48296'; +$wp_version = '5.5-alpha-48297'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.