Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../public_h.../wp-inclu...
File: rest-api.php
[3000] Fix | Delete
$response_data = rest_filter_response_by_context( $response_data, $matching_schema, $context );
[3001] Fix | Delete
}
[3002] Fix | Delete
}
[3003] Fix | Delete
[3004] Fix | Delete
if ( ! is_array( $response_data ) && ! is_object( $response_data ) ) {
[3005] Fix | Delete
return $response_data;
[3006] Fix | Delete
}
[3007] Fix | Delete
[3008] Fix | Delete
if ( isset( $schema['type'] ) ) {
[3009] Fix | Delete
$type = $schema['type'];
[3010] Fix | Delete
} elseif ( isset( $schema['properties'] ) ) {
[3011] Fix | Delete
$type = 'object'; // Back compat if a developer accidentally omitted the type.
[3012] Fix | Delete
} else {
[3013] Fix | Delete
return $response_data;
[3014] Fix | Delete
}
[3015] Fix | Delete
[3016] Fix | Delete
$is_array_type = 'array' === $type || ( is_array( $type ) && in_array( 'array', $type, true ) );
[3017] Fix | Delete
$is_object_type = 'object' === $type || ( is_array( $type ) && in_array( 'object', $type, true ) );
[3018] Fix | Delete
[3019] Fix | Delete
if ( $is_array_type && $is_object_type ) {
[3020] Fix | Delete
if ( rest_is_array( $response_data ) ) {
[3021] Fix | Delete
$is_object_type = false;
[3022] Fix | Delete
} else {
[3023] Fix | Delete
$is_array_type = false;
[3024] Fix | Delete
}
[3025] Fix | Delete
}
[3026] Fix | Delete
[3027] Fix | Delete
$has_additional_properties = $is_object_type && isset( $schema['additionalProperties'] ) && is_array( $schema['additionalProperties'] );
[3028] Fix | Delete
[3029] Fix | Delete
foreach ( $response_data as $key => $value ) {
[3030] Fix | Delete
$check = array();
[3031] Fix | Delete
[3032] Fix | Delete
if ( $is_array_type ) {
[3033] Fix | Delete
$check = isset( $schema['items'] ) ? $schema['items'] : array();
[3034] Fix | Delete
} elseif ( $is_object_type ) {
[3035] Fix | Delete
if ( isset( $schema['properties'][ $key ] ) ) {
[3036] Fix | Delete
$check = $schema['properties'][ $key ];
[3037] Fix | Delete
} else {
[3038] Fix | Delete
$pattern_property_schema = rest_find_matching_pattern_property_schema( $key, $schema );
[3039] Fix | Delete
if ( null !== $pattern_property_schema ) {
[3040] Fix | Delete
$check = $pattern_property_schema;
[3041] Fix | Delete
} elseif ( $has_additional_properties ) {
[3042] Fix | Delete
$check = $schema['additionalProperties'];
[3043] Fix | Delete
}
[3044] Fix | Delete
}
[3045] Fix | Delete
}
[3046] Fix | Delete
[3047] Fix | Delete
if ( ! isset( $check['context'] ) ) {
[3048] Fix | Delete
continue;
[3049] Fix | Delete
}
[3050] Fix | Delete
[3051] Fix | Delete
if ( ! in_array( $context, $check['context'], true ) ) {
[3052] Fix | Delete
if ( $is_array_type ) {
[3053] Fix | Delete
// All array items share schema, so there's no need to check each one.
[3054] Fix | Delete
$response_data = array();
[3055] Fix | Delete
break;
[3056] Fix | Delete
}
[3057] Fix | Delete
[3058] Fix | Delete
if ( is_object( $response_data ) ) {
[3059] Fix | Delete
unset( $response_data->$key );
[3060] Fix | Delete
} else {
[3061] Fix | Delete
unset( $response_data[ $key ] );
[3062] Fix | Delete
}
[3063] Fix | Delete
} elseif ( is_array( $value ) || is_object( $value ) ) {
[3064] Fix | Delete
$new_value = rest_filter_response_by_context( $value, $check, $context );
[3065] Fix | Delete
[3066] Fix | Delete
if ( is_object( $response_data ) ) {
[3067] Fix | Delete
$response_data->$key = $new_value;
[3068] Fix | Delete
} else {
[3069] Fix | Delete
$response_data[ $key ] = $new_value;
[3070] Fix | Delete
}
[3071] Fix | Delete
}
[3072] Fix | Delete
}
[3073] Fix | Delete
[3074] Fix | Delete
return $response_data;
[3075] Fix | Delete
}
[3076] Fix | Delete
[3077] Fix | Delete
/**
[3078] Fix | Delete
* Sets the "additionalProperties" to false by default for all object definitions in the schema.
[3079] Fix | Delete
*
[3080] Fix | Delete
* @since 5.5.0
[3081] Fix | Delete
* @since 5.6.0 Support the "patternProperties" keyword.
[3082] Fix | Delete
*
[3083] Fix | Delete
* @param array $schema The schema to modify.
[3084] Fix | Delete
* @return array The modified schema.
[3085] Fix | Delete
*/
[3086] Fix | Delete
function rest_default_additional_properties_to_false( $schema ) {
[3087] Fix | Delete
$type = (array) $schema['type'];
[3088] Fix | Delete
[3089] Fix | Delete
if ( in_array( 'object', $type, true ) ) {
[3090] Fix | Delete
if ( isset( $schema['properties'] ) ) {
[3091] Fix | Delete
foreach ( $schema['properties'] as $key => $child_schema ) {
[3092] Fix | Delete
$schema['properties'][ $key ] = rest_default_additional_properties_to_false( $child_schema );
[3093] Fix | Delete
}
[3094] Fix | Delete
}
[3095] Fix | Delete
[3096] Fix | Delete
if ( isset( $schema['patternProperties'] ) ) {
[3097] Fix | Delete
foreach ( $schema['patternProperties'] as $key => $child_schema ) {
[3098] Fix | Delete
$schema['patternProperties'][ $key ] = rest_default_additional_properties_to_false( $child_schema );
[3099] Fix | Delete
}
[3100] Fix | Delete
}
[3101] Fix | Delete
[3102] Fix | Delete
if ( ! isset( $schema['additionalProperties'] ) ) {
[3103] Fix | Delete
$schema['additionalProperties'] = false;
[3104] Fix | Delete
}
[3105] Fix | Delete
}
[3106] Fix | Delete
[3107] Fix | Delete
if ( in_array( 'array', $type, true ) ) {
[3108] Fix | Delete
if ( isset( $schema['items'] ) ) {
[3109] Fix | Delete
$schema['items'] = rest_default_additional_properties_to_false( $schema['items'] );
[3110] Fix | Delete
}
[3111] Fix | Delete
}
[3112] Fix | Delete
[3113] Fix | Delete
return $schema;
[3114] Fix | Delete
}
[3115] Fix | Delete
[3116] Fix | Delete
/**
[3117] Fix | Delete
* Gets the REST API route for a post.
[3118] Fix | Delete
*
[3119] Fix | Delete
* @since 5.5.0
[3120] Fix | Delete
*
[3121] Fix | Delete
* @param int|WP_Post $post Post ID or post object.
[3122] Fix | Delete
* @return string The route path with a leading slash for the given post,
[3123] Fix | Delete
* or an empty string if there is not a route.
[3124] Fix | Delete
*/
[3125] Fix | Delete
function rest_get_route_for_post( $post ) {
[3126] Fix | Delete
$post = get_post( $post );
[3127] Fix | Delete
[3128] Fix | Delete
if ( ! $post instanceof WP_Post ) {
[3129] Fix | Delete
return '';
[3130] Fix | Delete
}
[3131] Fix | Delete
[3132] Fix | Delete
$post_type_route = rest_get_route_for_post_type_items( $post->post_type );
[3133] Fix | Delete
if ( ! $post_type_route ) {
[3134] Fix | Delete
return '';
[3135] Fix | Delete
}
[3136] Fix | Delete
[3137] Fix | Delete
$route = sprintf( '%s/%d', $post_type_route, $post->ID );
[3138] Fix | Delete
[3139] Fix | Delete
/**
[3140] Fix | Delete
* Filters the REST API route for a post.
[3141] Fix | Delete
*
[3142] Fix | Delete
* @since 5.5.0
[3143] Fix | Delete
*
[3144] Fix | Delete
* @param string $route The route path.
[3145] Fix | Delete
* @param WP_Post $post The post object.
[3146] Fix | Delete
*/
[3147] Fix | Delete
return apply_filters( 'rest_route_for_post', $route, $post );
[3148] Fix | Delete
}
[3149] Fix | Delete
[3150] Fix | Delete
/**
[3151] Fix | Delete
* Gets the REST API route for a post type.
[3152] Fix | Delete
*
[3153] Fix | Delete
* @since 5.9.0
[3154] Fix | Delete
*
[3155] Fix | Delete
* @param string $post_type The name of a registered post type.
[3156] Fix | Delete
* @return string The route path with a leading slash for the given post type,
[3157] Fix | Delete
* or an empty string if there is not a route.
[3158] Fix | Delete
*/
[3159] Fix | Delete
function rest_get_route_for_post_type_items( $post_type ) {
[3160] Fix | Delete
$post_type = get_post_type_object( $post_type );
[3161] Fix | Delete
if ( ! $post_type ) {
[3162] Fix | Delete
return '';
[3163] Fix | Delete
}
[3164] Fix | Delete
[3165] Fix | Delete
if ( ! $post_type->show_in_rest ) {
[3166] Fix | Delete
return '';
[3167] Fix | Delete
}
[3168] Fix | Delete
[3169] Fix | Delete
$namespace = ! empty( $post_type->rest_namespace ) ? $post_type->rest_namespace : 'wp/v2';
[3170] Fix | Delete
$rest_base = ! empty( $post_type->rest_base ) ? $post_type->rest_base : $post_type->name;
[3171] Fix | Delete
$route = sprintf( '/%s/%s', $namespace, $rest_base );
[3172] Fix | Delete
[3173] Fix | Delete
/**
[3174] Fix | Delete
* Filters the REST API route for a post type.
[3175] Fix | Delete
*
[3176] Fix | Delete
* @since 5.9.0
[3177] Fix | Delete
*
[3178] Fix | Delete
* @param string $route The route path.
[3179] Fix | Delete
* @param WP_Post_Type $post_type The post type object.
[3180] Fix | Delete
*/
[3181] Fix | Delete
return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );
[3182] Fix | Delete
}
[3183] Fix | Delete
[3184] Fix | Delete
/**
[3185] Fix | Delete
* Gets the REST API route for a term.
[3186] Fix | Delete
*
[3187] Fix | Delete
* @since 5.5.0
[3188] Fix | Delete
*
[3189] Fix | Delete
* @param int|WP_Term $term Term ID or term object.
[3190] Fix | Delete
* @return string The route path with a leading slash for the given term,
[3191] Fix | Delete
* or an empty string if there is not a route.
[3192] Fix | Delete
*/
[3193] Fix | Delete
function rest_get_route_for_term( $term ) {
[3194] Fix | Delete
$term = get_term( $term );
[3195] Fix | Delete
[3196] Fix | Delete
if ( ! $term instanceof WP_Term ) {
[3197] Fix | Delete
return '';
[3198] Fix | Delete
}
[3199] Fix | Delete
[3200] Fix | Delete
$taxonomy_route = rest_get_route_for_taxonomy_items( $term->taxonomy );
[3201] Fix | Delete
if ( ! $taxonomy_route ) {
[3202] Fix | Delete
return '';
[3203] Fix | Delete
}
[3204] Fix | Delete
[3205] Fix | Delete
$route = sprintf( '%s/%d', $taxonomy_route, $term->term_id );
[3206] Fix | Delete
[3207] Fix | Delete
/**
[3208] Fix | Delete
* Filters the REST API route for a term.
[3209] Fix | Delete
*
[3210] Fix | Delete
* @since 5.5.0
[3211] Fix | Delete
*
[3212] Fix | Delete
* @param string $route The route path.
[3213] Fix | Delete
* @param WP_Term $term The term object.
[3214] Fix | Delete
*/
[3215] Fix | Delete
return apply_filters( 'rest_route_for_term', $route, $term );
[3216] Fix | Delete
}
[3217] Fix | Delete
[3218] Fix | Delete
/**
[3219] Fix | Delete
* Gets the REST API route for a taxonomy.
[3220] Fix | Delete
*
[3221] Fix | Delete
* @since 5.9.0
[3222] Fix | Delete
*
[3223] Fix | Delete
* @param string $taxonomy Name of taxonomy.
[3224] Fix | Delete
* @return string The route path with a leading slash for the given taxonomy.
[3225] Fix | Delete
*/
[3226] Fix | Delete
function rest_get_route_for_taxonomy_items( $taxonomy ) {
[3227] Fix | Delete
$taxonomy = get_taxonomy( $taxonomy );
[3228] Fix | Delete
if ( ! $taxonomy ) {
[3229] Fix | Delete
return '';
[3230] Fix | Delete
}
[3231] Fix | Delete
[3232] Fix | Delete
if ( ! $taxonomy->show_in_rest ) {
[3233] Fix | Delete
return '';
[3234] Fix | Delete
}
[3235] Fix | Delete
[3236] Fix | Delete
$namespace = ! empty( $taxonomy->rest_namespace ) ? $taxonomy->rest_namespace : 'wp/v2';
[3237] Fix | Delete
$rest_base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
[3238] Fix | Delete
$route = sprintf( '/%s/%s', $namespace, $rest_base );
[3239] Fix | Delete
[3240] Fix | Delete
/**
[3241] Fix | Delete
* Filters the REST API route for a taxonomy.
[3242] Fix | Delete
*
[3243] Fix | Delete
* @since 5.9.0
[3244] Fix | Delete
*
[3245] Fix | Delete
* @param string $route The route path.
[3246] Fix | Delete
* @param WP_Taxonomy $taxonomy The taxonomy object.
[3247] Fix | Delete
*/
[3248] Fix | Delete
return apply_filters( 'rest_route_for_taxonomy_items', $route, $taxonomy );
[3249] Fix | Delete
}
[3250] Fix | Delete
[3251] Fix | Delete
/**
[3252] Fix | Delete
* Gets the REST route for the currently queried object.
[3253] Fix | Delete
*
[3254] Fix | Delete
* @since 5.5.0
[3255] Fix | Delete
*
[3256] Fix | Delete
* @return string The REST route of the resource, or an empty string if no resource identified.
[3257] Fix | Delete
*/
[3258] Fix | Delete
function rest_get_queried_resource_route() {
[3259] Fix | Delete
if ( is_singular() ) {
[3260] Fix | Delete
$route = rest_get_route_for_post( get_queried_object() );
[3261] Fix | Delete
} elseif ( is_category() || is_tag() || is_tax() ) {
[3262] Fix | Delete
$route = rest_get_route_for_term( get_queried_object() );
[3263] Fix | Delete
} elseif ( is_author() ) {
[3264] Fix | Delete
$route = '/wp/v2/users/' . get_queried_object_id();
[3265] Fix | Delete
} else {
[3266] Fix | Delete
$route = '';
[3267] Fix | Delete
}
[3268] Fix | Delete
[3269] Fix | Delete
/**
[3270] Fix | Delete
* Filters the REST route for the currently queried object.
[3271] Fix | Delete
*
[3272] Fix | Delete
* @since 5.5.0
[3273] Fix | Delete
*
[3274] Fix | Delete
* @param string $link The route with a leading slash, or an empty string.
[3275] Fix | Delete
*/
[3276] Fix | Delete
return apply_filters( 'rest_queried_resource_route', $route );
[3277] Fix | Delete
}
[3278] Fix | Delete
[3279] Fix | Delete
/**
[3280] Fix | Delete
* Retrieves an array of endpoint arguments from the item schema and endpoint method.
[3281] Fix | Delete
*
[3282] Fix | Delete
* @since 5.6.0
[3283] Fix | Delete
*
[3284] Fix | Delete
* @param array $schema The full JSON schema for the endpoint.
[3285] Fix | Delete
* @param string $method Optional. HTTP method of the endpoint. The arguments for `CREATABLE` endpoints are
[3286] Fix | Delete
* checked for required values and may fall-back to a given default, this is not done
[3287] Fix | Delete
* on `EDITABLE` endpoints. Default WP_REST_Server::CREATABLE.
[3288] Fix | Delete
* @return array The endpoint arguments.
[3289] Fix | Delete
*/
[3290] Fix | Delete
function rest_get_endpoint_args_for_schema( $schema, $method = WP_REST_Server::CREATABLE ) {
[3291] Fix | Delete
[3292] Fix | Delete
$schema_properties = ! empty( $schema['properties'] ) ? $schema['properties'] : array();
[3293] Fix | Delete
$endpoint_args = array();
[3294] Fix | Delete
$valid_schema_properties = rest_get_allowed_schema_keywords();
[3295] Fix | Delete
$valid_schema_properties = array_diff( $valid_schema_properties, array( 'default', 'required' ) );
[3296] Fix | Delete
[3297] Fix | Delete
foreach ( $schema_properties as $field_id => $params ) {
[3298] Fix | Delete
[3299] Fix | Delete
// Arguments specified as `readonly` are not allowed to be set.
[3300] Fix | Delete
if ( ! empty( $params['readonly'] ) ) {
[3301] Fix | Delete
continue;
[3302] Fix | Delete
}
[3303] Fix | Delete
[3304] Fix | Delete
$endpoint_args[ $field_id ] = array(
[3305] Fix | Delete
'validate_callback' => 'rest_validate_request_arg',
[3306] Fix | Delete
'sanitize_callback' => 'rest_sanitize_request_arg',
[3307] Fix | Delete
);
[3308] Fix | Delete
[3309] Fix | Delete
if ( WP_REST_Server::CREATABLE === $method && isset( $params['default'] ) ) {
[3310] Fix | Delete
$endpoint_args[ $field_id ]['default'] = $params['default'];
[3311] Fix | Delete
}
[3312] Fix | Delete
[3313] Fix | Delete
if ( WP_REST_Server::CREATABLE === $method && ! empty( $params['required'] ) ) {
[3314] Fix | Delete
$endpoint_args[ $field_id ]['required'] = true;
[3315] Fix | Delete
}
[3316] Fix | Delete
[3317] Fix | Delete
foreach ( $valid_schema_properties as $schema_prop ) {
[3318] Fix | Delete
if ( isset( $params[ $schema_prop ] ) ) {
[3319] Fix | Delete
$endpoint_args[ $field_id ][ $schema_prop ] = $params[ $schema_prop ];
[3320] Fix | Delete
}
[3321] Fix | Delete
}
[3322] Fix | Delete
[3323] Fix | Delete
// Merge in any options provided by the schema property.
[3324] Fix | Delete
if ( isset( $params['arg_options'] ) ) {
[3325] Fix | Delete
[3326] Fix | Delete
// Only use required / default from arg_options on CREATABLE endpoints.
[3327] Fix | Delete
if ( WP_REST_Server::CREATABLE !== $method ) {
[3328] Fix | Delete
$params['arg_options'] = array_diff_key(
[3329] Fix | Delete
$params['arg_options'],
[3330] Fix | Delete
array(
[3331] Fix | Delete
'required' => '',
[3332] Fix | Delete
'default' => '',
[3333] Fix | Delete
)
[3334] Fix | Delete
);
[3335] Fix | Delete
}
[3336] Fix | Delete
[3337] Fix | Delete
$endpoint_args[ $field_id ] = array_merge( $endpoint_args[ $field_id ], $params['arg_options'] );
[3338] Fix | Delete
}
[3339] Fix | Delete
}
[3340] Fix | Delete
[3341] Fix | Delete
return $endpoint_args;
[3342] Fix | Delete
}
[3343] Fix | Delete
[3344] Fix | Delete
[3345] Fix | Delete
/**
[3346] Fix | Delete
* Converts an error to a response object.
[3347] Fix | Delete
*
[3348] Fix | Delete
* This iterates over all error codes and messages to change it into a flat
[3349] Fix | Delete
* array. This enables simpler client behavior, as it is represented as a
[3350] Fix | Delete
* list in JSON rather than an object/map.
[3351] Fix | Delete
*
[3352] Fix | Delete
* @since 5.7.0
[3353] Fix | Delete
*
[3354] Fix | Delete
* @param WP_Error $error WP_Error instance.
[3355] Fix | Delete
*
[3356] Fix | Delete
* @return WP_REST_Response List of associative arrays with code and message keys.
[3357] Fix | Delete
*/
[3358] Fix | Delete
function rest_convert_error_to_response( $error ) {
[3359] Fix | Delete
$status = array_reduce(
[3360] Fix | Delete
$error->get_all_error_data(),
[3361] Fix | Delete
static function ( $status, $error_data ) {
[3362] Fix | Delete
return is_array( $error_data ) && isset( $error_data['status'] ) ? $error_data['status'] : $status;
[3363] Fix | Delete
},
[3364] Fix | Delete
500
[3365] Fix | Delete
);
[3366] Fix | Delete
[3367] Fix | Delete
$errors = array();
[3368] Fix | Delete
[3369] Fix | Delete
foreach ( (array) $error->errors as $code => $messages ) {
[3370] Fix | Delete
$all_data = $error->get_all_error_data( $code );
[3371] Fix | Delete
$last_data = array_pop( $all_data );
[3372] Fix | Delete
[3373] Fix | Delete
foreach ( (array) $messages as $message ) {
[3374] Fix | Delete
$formatted = array(
[3375] Fix | Delete
'code' => $code,
[3376] Fix | Delete
'message' => $message,
[3377] Fix | Delete
'data' => $last_data,
[3378] Fix | Delete
);
[3379] Fix | Delete
[3380] Fix | Delete
if ( $all_data ) {
[3381] Fix | Delete
$formatted['additional_data'] = $all_data;
[3382] Fix | Delete
}
[3383] Fix | Delete
[3384] Fix | Delete
$errors[] = $formatted;
[3385] Fix | Delete
}
[3386] Fix | Delete
}
[3387] Fix | Delete
[3388] Fix | Delete
$data = $errors[0];
[3389] Fix | Delete
if ( count( $errors ) > 1 ) {
[3390] Fix | Delete
// Remove the primary error.
[3391] Fix | Delete
array_shift( $errors );
[3392] Fix | Delete
$data['additional_errors'] = $errors;
[3393] Fix | Delete
}
[3394] Fix | Delete
[3395] Fix | Delete
return new WP_REST_Response( $data, $status );
[3396] Fix | Delete
}
[3397] Fix | Delete
[3398] Fix | Delete
/**
[3399] Fix | Delete
* Checks whether a REST API endpoint request is currently being handled.
[3400] Fix | Delete
*
[3401] Fix | Delete
* This may be a standalone REST API request, or an internal request dispatched from within a regular page load.
[3402] Fix | Delete
*
[3403] Fix | Delete
* @since 6.5.0
[3404] Fix | Delete
*
[3405] Fix | Delete
* @global WP_REST_Server $wp_rest_server REST server instance.
[3406] Fix | Delete
*
[3407] Fix | Delete
* @return bool True if a REST endpoint request is currently being handled, false otherwise.
[3408] Fix | Delete
*/
[3409] Fix | Delete
function wp_is_rest_endpoint() {
[3410] Fix | Delete
/* @var WP_REST_Server $wp_rest_server */
[3411] Fix | Delete
global $wp_rest_server;
[3412] Fix | Delete
[3413] Fix | Delete
// Check whether this is a standalone REST request.
[3414] Fix | Delete
$is_rest_endpoint = wp_is_serving_rest_request();
[3415] Fix | Delete
if ( ! $is_rest_endpoint ) {
[3416] Fix | Delete
// Otherwise, check whether an internal REST request is currently being handled.
[3417] Fix | Delete
$is_rest_endpoint = isset( $wp_rest_server )
[3418] Fix | Delete
&& $wp_rest_server->is_dispatching();
[3419] Fix | Delete
}
[3420] Fix | Delete
[3421] Fix | Delete
/**
[3422] Fix | Delete
* Filters whether a REST endpoint request is currently being handled.
[3423] Fix | Delete
*
[3424] Fix | Delete
* This may be a standalone REST API request, or an internal request dispatched from within a regular page load.
[3425] Fix | Delete
*
[3426] Fix | Delete
* @since 6.5.0
[3427] Fix | Delete
*
[3428] Fix | Delete
* @param bool $is_request_endpoint Whether a REST endpoint request is currently being handled.
[3429] Fix | Delete
*/
[3430] Fix | Delete
return (bool) apply_filters( 'wp_is_rest_endpoint', $is_rest_endpoint );
[3431] Fix | Delete
}
[3432] Fix | Delete
[3433] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function