Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-01-29 00:43:23 +00:00
parent bd2cd572aa
commit cfc3b57488
810 changed files with 9893 additions and 8384 deletions
@@ -48,10 +48,10 @@ final class WP_Internal_Pointers {
* )
*/
$registered_pointers = array(
//None currently.
// None currently.
);
// Check if screen related pointer is registered
// Check if screen related pointer is registered.
if ( empty( $registered_pointers[ $hook_suffix ] ) ) {
return;
}
@@ -75,7 +75,7 @@ final class WP_Internal_Pointers {
// None currently.
);
// Get dismissed pointers
// Get dismissed pointers.
$dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
$got_pointers = false;
@@ -88,7 +88,7 @@ final class WP_Internal_Pointers {
}
}
// Bind pointer print function
// Bind pointer print function.
add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . $pointer ) );
$got_pointers = true;
}
@@ -97,7 +97,7 @@ final class WP_Internal_Pointers {
return;
}
// Add pointers script and style to queue
// Add pointers script and style to queue.
wp_enqueue_style( 'wp-pointer' );
wp_enqueue_script( 'wp-pointer' );
}