Skip to content

Commit 05fd462

Browse files
committed
Docs: Replace multiple single line comments with multi-line comments.
This changeset updates various comments as per WordPress PHP Inline Documentation Standards. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments. Follow-up to [56174]. Props costdev, audrasjb. See #58459. git-svn-id: https://develop.svn.wordpress.org/trunk@56175 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 13b571e commit 05fd462

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/wp-admin/menu-header.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
226226
$class[] = 'current';
227227
$aria_attributes .= ' aria-current="page"';
228228
}
229-
// If plugin_page is set the parent must either match the current page or not physically exist.
230-
// This allows plugin pages with the same hook to exist under different parents.
229+
/*
230+
* If plugin_page is set the parent must either match the current page or not physically exist.
231+
* This allows plugin pages with the same hook to exist under different parents.
232+
*/
231233
} elseif (
232234
( ! isset( $plugin_page ) && $self === $sub_item[2] )
233235
|| ( isset( $plugin_page ) && $plugin_page === $sub_item[2]

src/wp-admin/update-core.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,10 @@ function do_core_upgrade( $reinstall = false ) {
850850
return;
851851
}
852852

853-
// Allow relaxed file ownership writes for User-initiated upgrades when the API specifies
854-
// that it's safe to do so. This only happens when there are no new files to create.
853+
/*
854+
* Allow relaxed file ownership writes for User-initiated upgrades when the API specifies
855+
* that it's safe to do so. This only happens when there are no new files to create.
856+
*/
855857
$allow_relaxed_file_ownership = ! $reinstall && isset( $update->new_files ) && ! $update->new_files;
856858

857859
?>

src/wp-admin/user-edit.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,10 @@
921921
jQuery( function( $ ) {
922922
var languageSelect = $( '#locale' );
923923
$( 'form' ).on( 'submit', function() {
924-
// Don't show a spinner for English and installed languages,
925-
// as there is nothing to download.
924+
/*
925+
* Don't show a spinner for English and installed languages,
926+
* as there is nothing to download.
927+
*/
926928
if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
927929
$( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
928930
}

0 commit comments

Comments
 (0)