WordPress.org

Make WordPress Core

Changeset 39941


Ignore:
Timestamp:
01/22/17 02:32:57 (14 hours ago)
Author:
SergeyBiryukov
Message:

Text Changes: Add a period to the only wp_die() message that didn't have it: "Invalid plugin page".

Props Presskopp.
Fixes #39664.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin.php

    r38307 r39941  
    222222        do_action( $page_hook ); 
    223223    } else { 
    224         if ( validate_file($plugin_page) ) 
    225             wp_die(__('Invalid plugin page')); 
     224        if ( validate_file( $plugin_page ) ) { 
     225            wp_die( __( 'Invalid plugin page.' ) ); 
     226        } 
    226227 
    227228        if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) ) 
Note: See TracChangeset for help on using the changeset viewer.