Changeset 63177 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 08/11/2026 01:16:00 PM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r63001 r63177 569 569 } 570 570 } else { 571 $post = get_default_post_to_edit( 'post', true ); 572 $user_id = get_current_user_id(); 571 $post = get_default_post_to_edit( 'post', true ); 572 $user_id = get_current_user_id(); 573 $user_blogs = get_blogs_of_user( $user_id ); 574 $current_blog_id = get_current_blog_id(); 573 575 574 576 // Don't create an option if this is a super admin who does not belong to this site. 575 if ( i n_array( get_current_blog_id(), array_keys( get_blogs_of_user( $user_id ) ), true) ) {577 if ( isset( $user_blogs[ $current_blog_id ] ) ) { 576 578 update_user_option( $user_id, 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID. 577 579 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)