diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index b094634985..37c697e43f 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -789,6 +789,8 @@ class WP_REST_Server { } if ( ! is_wp_error( $response ) ) { + // Remove the redundant preg_match argument. + unset( $args[0] ); $request->set_url_params( $args ); $request->set_attributes( $handler ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8fa69a7d14..2696c569f1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta4-35658'; +$wp_version = '4.4-beta4-35659'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.