mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user