wp/wp-admin/load-scripts.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 <?php
     1 <?php
     2 
     2 
     3 /**
     3 /*
     4  * Disable error reporting
     4  * Disable error reporting.
     5  *
     5  *
     6  * Set this to error_reporting( -1 ) for debugging.
     6  * Set this to error_reporting( -1 ) for debugging.
     7  */
     7  */
     8 error_reporting( 0 );
     8 error_reporting( 0 );
     9 
     9 
    10 /** Set ABSPATH for execution */
    10 // Set ABSPATH for execution.
    11 if ( ! defined( 'ABSPATH' ) ) {
    11 if ( ! defined( 'ABSPATH' ) ) {
    12 	define( 'ABSPATH', dirname( __DIR__ ) . '/' );
    12 	define( 'ABSPATH', dirname( __DIR__ ) . '/' );
    13 }
    13 }
    14 
    14 
    15 define( 'WPINC', 'wp-includes' );
    15 define( 'WPINC', 'wp-includes' );
    16 
    16 
    17 $protocol = $_SERVER['SERVER_PROTOCOL'];
    17 $protocol = $_SERVER['SERVER_PROTOCOL'];
    18 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ), true ) ) {
    18 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) {
    19 	$protocol = 'HTTP/1.0';
    19 	$protocol = 'HTTP/1.0';
    20 }
    20 }
    21 
    21 
    22 $load = $_GET['load'];
    22 $load = $_GET['load'];
    23 if ( is_array( $load ) ) {
    23 if ( is_array( $load ) ) {