Changeset 56220 for trunk/src/wp-includes/admin-bar.php
- Timestamp:
- 07/12/2023 12:52:26 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r56209 r56220 123 123 function wp_admin_bar_wp_menu( $wp_admin_bar ) { 124 124 if ( current_user_can( 'read' ) ) { 125 $about_url = self_admin_url( 'about.php' ); 125 $about_url = self_admin_url( 'about.php' ); 126 $contribute_url = self_admin_url( 'contribute.php' ); 126 127 } elseif ( is_multisite() ) { 127 $about_url = get_dashboard_url( get_current_user_id(), 'about.php' ); 128 $about_url = get_dashboard_url( get_current_user_id(), 'about.php' ); 129 $contribute_url = get_dashboard_url( get_current_user_id(), 'contribute.php' ); 128 130 } else { 129 $about_url = false; 131 $about_url = false; 132 $contribute_url = false; 130 133 } 131 134 … … 156 159 'title' => __( 'About WordPress' ), 157 160 'href' => $about_url, 161 162 163 164 165 166 167 168 169 170 171 172 158 173 ) 159 174 );
Note: See TracChangeset
for help on using the changeset viewer.