mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Fix typo in a comment in wp_prepare_revisions_for_js().
Includes updating the comment to use the correct format for multi-line comments as per the documentation standards. Follow-up to [30353]. Props dilipbheda, mukesh27. Fixes #56981. git-svn-id: https://develop.svn.wordpress.org/trunk@54749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6c13a2da46
commit
2dce57706f
@ -279,9 +279,9 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
|
||||
$revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post );
|
||||
}
|
||||
|
||||
/**
|
||||
* If we only have one revision, the initial revision is missing; This happens
|
||||
* when we have an autsosave and the user has clicked 'View the Autosave'
|
||||
/*
|
||||
* If we only have one revision, the initial revision is missing. This happens
|
||||
* when we have an autosave and the user has clicked 'View the Autosave'.
|
||||
*/
|
||||
if ( 1 === count( $revisions ) ) {
|
||||
$revisions[ $post->ID ] = array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user