Update WP and plugins

This commit is contained in:
Oliver Davies 2019-04-16 20:56:22 +01:00
parent 10a4713229
commit 1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions

View file

@ -13,15 +13,16 @@ if ( ! defined( 'WP_ADMIN' ) ) {
define( 'WP_ADMIN', true );
}
if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
if ( defined( 'ABSPATH' ) ) {
require_once( ABSPATH . 'wp-load.php' );
} else {
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
}
/** Allow for cross-domain requests (from the front end). */
send_origin_headers();
require_once(ABSPATH . 'wp-admin/includes/admin.php');
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
nocache_headers();
@ -30,10 +31,10 @@ do_action( 'admin_init' );
$action = empty( $_REQUEST['action'] ) ? '' : $_REQUEST['action'];
if ( ! wp_validate_auth_cookie() ) {
if ( ! is_user_logged_in() ) {
if ( empty( $action ) ) {
/**
* Fires on a non-authenticated admin post request where no action was supplied.
* Fires on a non-authenticated admin post request where no action is supplied.
*
* @since 2.6.0
*/
@ -52,7 +53,7 @@ if ( ! wp_validate_auth_cookie() ) {
} else {
if ( empty( $action ) ) {
/**
* Fires on an authenticated admin post request where no action was supplied.
* Fires on an authenticated admin post request where no action is supplied.
*
* @since 2.6.0
*/