Changeset 31300
- Timestamp:
- 01/29/2015 09:14:54 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/menu.php
r29206 r31300 317 317 do_action( 'admin_page_access_denied' ); 318 318 319 wp_die( __( 'You do not have sufficient permissions to access this page.'));319 wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 ); 320 320 } 321 321 -
trunk/src/wp-admin/includes/ms.php
r31113 r31300 626 626 627 627 if ( empty( $blogs ) ) 628 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 ) );628 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 ), 403 ); 629 629 630 630 $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>'; … … 644 644 $output .= '</table>'; 645 645 646 wp_die( $output );646 wp_die( $output, 403 ); 647 647 } 648 648 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
Note: See TracChangeset
for help on using the changeset viewer.