WordPress.org

Make WordPress Core

Changeset 17763


Ignore:
Timestamp:
04/29/2011 01:51:53 AM (7 years ago)
Author:
nacin
Message:

Use proper placeholders. No need to exit after wp_die(). fixes #17121.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r17762 r17763  
    505505    $blog_name = get_bloginfo( 'name' );
    506506
    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>';
    513511    $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>';
    514512
     
    529527
    530528    wp_die( $output );
    531     exit;
    532529}
    533530add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
Note: See TracChangeset for help on using the changeset viewer.