[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/js/ -> site-health.js (summary)

(no description)

File Size: 514 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  validateIssueData()
  appendIssue()
  recalculateProgression()
  maybeRunNextAsyncTest()
  addFailedSiteHealthCheckNotice()
  getDirectorySizes()
  updateDirSizes()
  announceTestsProgression()

Functions
Functions that are not part of a class:

validateIssueData( issue )   X-Ref
Validates the Site Health test result format.

return: {boolean} True if the issue data is valid, false otherwise.
param: {Object} issue The issue data to validate.

appendIssue( issue )   X-Ref
Appends a new issue to the issue list.

return: {void|boolean} True if the issue was appended, false otherwise.
param: {Object} issue The issue data.

recalculateProgression()   X-Ref
Updates site health status indicator as asynchronous tests are run and returned.


maybeRunNextAsyncTest()   X-Ref
Queues the next asynchronous test when we're ready to run it.


addFailedSiteHealthCheckNotice( url, description )   X-Ref
Add the details of a failed asynchronous test to the list of test results.

param: {string} url         The URL of the failed test.
param: {string} description The description of the failed test.

getDirectorySizes()   X-Ref
Get the sizes of the directories in the Site Health Info section.


updateDirSizes( data )   X-Ref
Updates the directory sizes in the Site Health Info section.

param: {Object} data The directory sizes data.

announceTestsProgression( type )   X-Ref
Announces to assistive technologies the tests progression status.

return: {void}
param: {string} type The type of message to be announced.



Generated : Thu Sep 24 08:20:34 2026 Cross-referenced by PHPXref