WordPress.org

Make WordPress Core

Ticket #44360: 44360.admin.php.diff

File 44360.admin.php.diff, 544 bytes (added by subrataemfluence, 18 months ago)

Patch for core file wp-admin/admin.php

  • admin.php

    diff --git src/wp-admin/admin.php b/admin.php
    index a3dab04..57b3739 100755
    old new if ( isset( $plugin_page ) ) { 
    243243                }
    244244
    245245                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" ) ) ) {
     246                        /* translators: %s: Admin page generated by the plugin. */
    246247                        wp_die( sprintf( __( 'Cannot load %s.' ), htmlentities( $plugin_page ) ) );
    247248                }
    248249