Changeset 17763
- Timestamp:
- 04/29/2011 01:51:53 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r17762 r17763 505 505 $blog_name = get_bloginfo( 'name' ); 506 506 507 if ( empty( $blogs ) ) { 508 wp_die( sprintf( __( 'You attempted to access the "%s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "Test" dashboard, please contact your network administrator.' ), $blog_name ) ); 509 exit; 510 } 511 512 $output = '<p>' . sprintf( __( 'You attempted to access the "%s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "Test" dashboard, please contact your network administrator.' ), $blog_name ) . '</p>'; 507 if ( empty( $blogs ) ) 508 wp_die( sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) ); 509 510 $output = '<p>' . sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '</p>'; 513 511 $output .= '<p>' . __( 'If you reached this screen by accident and meant to visit one your own sites, here are some shortcuts to help you find your way.' ) . '</p>'; 514 512 … … 529 527 530 528 wp_die( $output ); 531 exit;532 529 } 533 530 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
Note: See TracChangeset
for help on using the changeset viewer.