Make WordPress Core

Ticket #54191: 54191.php

File 54191.php, 626 bytes (added by rehanali, 2 years ago)

I have added the comments for the initializing function

Line 
1Index: class-wp-admin-bar.php
2===================================================================
3--- class-wp-admin-bar.php      (revision 51468)
4+++ class-wp-admin-bar.php      (working copy)
5@@ -33,7 +33,10 @@
6        }
7 
8        /**
9-        */
10+           * Initializes the admin bar.
11+           *
12+           * @since 3.1.0
13+    */
14        public function initialize() {
15                $this->user = new stdClass;
16 
17@@ -596,7 +599,11 @@
18        }
19 
20        /**
21-        */
22+           * Adds a menu in the admin bar.
23+           *
24+           * @since 3.1.0
25+    */
26+       
27        public function add_menus() {
28                // User-related, aligned right.
29                add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );