wppaste
WordPress

rest_sanitize_value_from_schema( mixed $value, array $args, string $param = '' ): mixed|WP_Error

Since
4.7.0, 5.5.0, 5.6.0, 5.9.0
Source
wp-includes/rest-api.php:2784
Sanitize a value based on a schema.

Compatibility

WordPress
since 5.9.0
PHP
7.4–8.6-dev
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.

Parameters

$valuemixed
The value to sanitize.
$argsarray
Schema array to use for sanitization.
$paramstringoptional
The parameter name, used in error messages.Default: ''

Return value

mixed|WP_Error
The sanitized value or a WP_Error instance if the value cannot be safely sanitized.

Performance profile

How much work a call to rest_sanitize_value_from_schema() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Light

Touches nothing outside its own arguments.

Scaling
Scales with input

The body loops, so the work grows with what you pass in.

Instructions
18–143

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 309.

Plugin surface
None

Nothing here hands control to plugin code.

Called by
11

11 places in core call this, so the cost is paid more often than your own code shows.

What it touches

  • hookthird-party callbacksdo_action()one call below rest_sanitize_value_from_schema()

Further down the call graph this can also reach option, cache, serialize, query and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.

What one call costs · 322 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost rest_sanitize_value_from_schema() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
is_wp_error()18rest_find_one_matching_schema(), is_wp_error()
always21–79rest_handle_multi_type_schema()
always26–70none
empty($args)28–31rest_sanitize_array()
always29–30rest_sanitize_object()
!empty($args) && rest_validate_array_contains_unique_items()32–35rest_sanitize_array(), rest_validate_array_contains_unique_items()
!isset($args)33–91__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema()
isset($args)36rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error()
empty($args)37–40rest_handle_multi_type_schema(), rest_sanitize_array()
always38rest_sanitize_boolean()
always38–39rest_handle_multi_type_schema(), rest_sanitize_object()
!isset($args)38–82__(), sprintf(), _doing_it_wrong()
310 further outcomes, up to 128 instructions
always39–83__(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()39–100rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema()
!is_wp_error()39–97rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema()
!isset($args) && empty($args)40–43__(), sprintf(), _doing_it_wrong(), rest_sanitize_array()
!empty($args) && rest_validate_array_contains_unique_items()41–44rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
empty($args)41–44__(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!isset($args)41–42__(), sprintf(), _doing_it_wrong(), rest_sanitize_object()
always42–43__(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!empty($args) && !rest_validate_array_contains_unique_items()43–46rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()44–91rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema()
!is_wp_error()44–91rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema()
!isset($args) && !empty($args) && rest_validate_array_contains_unique_items()44–47__(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
always45–66sanitize_text_field()
always45–60sanitize_url()
always45–68sanitize_textarea_field()
!empty($args) && rest_validate_array_contains_unique_items()45–48__(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
always46–55sanitize_hex_color()
!is_wp_error() && empty($args)46–52rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array()
!is_wp_error() && empty($args)46–52rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array()
always47rest_handle_multi_type_schema(), rest_sanitize_boolean()
!is_wp_error()47–51rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_object()
!is_wp_error()47–51rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_object()
always48–92rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!isset($args) && empty($args)49–52__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array()
!isset($args)50__(), sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
empty($args)50–53rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!isset($args)50–51__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_object()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()50–56rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()50–56rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
always51__(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
always51–52rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!isset($args)51–95__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()51–112rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema()
!is_wp_error()51–109rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema()
!empty($args) && !rest_validate_array_contains_unique_items()52–55rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!isset($args) && !empty($args) && rest_validate_array_contains_unique_items()53–56__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!isset($args) && empty($args)53–56__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
always54–75rest_handle_multi_type_schema(), sanitize_text_field()
always54–69rest_handle_multi_type_schema(), sanitize_url()
always54–77rest_handle_multi_type_schema(), sanitize_textarea_field()
!empty($args) && rest_validate_array_contains_unique_items()54–57rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!isset($args)54–55__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
always55–64rest_handle_multi_type_schema(), sanitize_hex_color()
!is_wp_error() && empty($args)55–61rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array()
!is_wp_error() && empty($args)55–58rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array()
!isset($args) && !empty($args) && !rest_validate_array_contains_unique_items()55–58__(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()56–59rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_boolean()
!is_wp_error()56–59rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_boolean()
!is_wp_error()56–60rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_object()
!is_wp_error()56–57rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_object()
!is_wp_error()56–103rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong()
!is_wp_error()56–100rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong()
!empty($args) && !rest_validate_array_contains_unique_items()56–59__(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
always57–78__(), sprintf(), _doing_it_wrong(), sanitize_text_field()
always57–72__(), sprintf(), _doing_it_wrong(), sanitize_url()
always57–80__(), sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()57–104rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()57–104rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong()
isset($args) && !is_wp_error()57–118rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema()
!isset($args) && !empty($args) && rest_validate_array_contains_unique_items()57–60__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
always58–79__(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
always58–73__(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
always58–81__(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
always58–67__(), sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && empty($args)58–64rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error() && empty($args)58–61rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array()
always59–68__(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!isset($args)59__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()59–65rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()59–62rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && empty($args)59–65rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()59–63rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error() && empty($args)59–65rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()59–60rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_object()
always60rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!isset($args)60–104__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()60–64rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()60–64rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()61–67rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()61–67rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error()62–109rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema()
!isset($args) && empty($args)62–65__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()62–68rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()62–65rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error()63–87rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_text_field()
!is_wp_error()63–81rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_url()
!is_wp_error()63–89rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_textarea_field()
!is_wp_error()63–87rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_text_field()
!is_wp_error()63–81rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_url()
!is_wp_error()63–89rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_textarea_field()
!isset($args)63__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!isset($args)63–64__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()63–69rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()63–69rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error()64–76rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_hex_color()
!is_wp_error()64–76rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_hex_color()
isset($args) && !is_wp_error() && empty($args)64–70rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array()
!isset($args) && !empty($args) && !rest_validate_array_contains_unique_items()64–67__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()65–68rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
!is_wp_error()65rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
isset($args) && !is_wp_error()65–69rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_object()
!empty($args) && !rest_validate_array_contains_unique_items()65–68rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
always66–87__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_text_field()
always66–81__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_url()
always66–89__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_textarea_field()
!is_wp_error()66–113rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()66–110rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!isset($args) && !empty($args) && rest_validate_array_contains_unique_items()66–69__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
always67–88rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
always67–82rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
always67–90rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
always67–76__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_hex_color()
!is_wp_error() && empty($args)67–73rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array()
!is_wp_error() && empty($args)67–70rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array()
always68–77rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()68–71rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()68rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error() && empty($args)68–74rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()68–72rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_object()
!is_wp_error() && empty($args)68–71rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()68–69rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_object()
isset($args) && !is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()68–74rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!isset($args) && !empty($args) && !rest_validate_array_contains_unique_items()68–71__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()69–72rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()69–72rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()69–73rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()69–70rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()69–116rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()69–113rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()69–130rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema()
always70–91__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
always70–85__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
always70–93__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()70–76rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()70–73rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
always71–80__(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()71–77rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()71–74rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && empty($args)71–77rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error() && empty($args)71–74rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()72–96rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_text_field()
!is_wp_error()72–90rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_url()
!is_wp_error()72–98rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_textarea_field()
!is_wp_error()72–93rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_text_field()
!is_wp_error()72–87rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_url()
!is_wp_error()72–95rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_textarea_field()
!isset($args)72__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()72–78rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()72–75rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error()72–76rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()72–73rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()73–85rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_hex_color()
!is_wp_error()73–82rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_hex_color()
isset($args) && !is_wp_error() && empty($args)73–79rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()73–79rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()73–76rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error()74–77rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_boolean()
isset($args) && !is_wp_error()74–78rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_object()
!is_wp_error()74–121rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()74–80rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()74–80rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()75–99rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()75–93rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()75–101rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()75–96rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()75–90rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()75–98rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_textarea_field()
isset($args) && !is_wp_error()75–122rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()75–81rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()75–78rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error()76–100rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()76–94rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()76–102rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()76–88rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()76–100rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()76–94rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()76–102rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()76–85rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && empty($args)76–82rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()77–89rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()77–89rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()77–80rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
!is_wp_error()77rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
isset($args) && !is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()77–83rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
isset($args) && !is_wp_error() && empty($args)77–83rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()77–81rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_object()
!isset($args) && !empty($args) && !rest_validate_array_contains_unique_items()77–80__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()78–81rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()78rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()78–125rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()78–122rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
isset($args) && !is_wp_error()78–82rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
always79–100__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
always79–94__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
always79–102__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
isset($args) && !is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()79–85rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
always80–89__(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && empty($args)80–86rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error() && empty($args)80–83rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()80–86rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
isset($args) && !is_wp_error()81–105rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_text_field()
isset($args) && !is_wp_error()81–99rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_url()
isset($args) && !is_wp_error()81–107rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_textarea_field()
!is_wp_error()81–84rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()81rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()81–85rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()81–82rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
isset($args) && !is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()81–87rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
isset($args) && !is_wp_error()82–94rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), sanitize_hex_color()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()82–88rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()82–85rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error()83–86rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()83–89rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()83–86rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()84–108rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_text_field()
!is_wp_error()84–102rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_url()
!is_wp_error()84–110rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_textarea_field()
!is_wp_error()84–105rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_text_field()
!is_wp_error()84–99rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_url()
!is_wp_error()84–107rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_textarea_field()
isset($args) && !is_wp_error()84–131rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()84–90rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()84–87rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error()85–109rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()85–103rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()85–111rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()85–97rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_hex_color()
!is_wp_error()85–106rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()85–100rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()85–108rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()85–94rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_hex_color()
!is_wp_error() && empty($args)85–91rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array()
!is_wp_error()86–98rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()86–95rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()86–89rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
isset($args) && !is_wp_error() && empty($args)86–92rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()86–90rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_object()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()86–92rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()86–89rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error()87–90rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
isset($args) && !is_wp_error()87–91rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error()87–134rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()88–112rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()88–106rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()88–114rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()88–109rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()88–103rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()88–111rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
isset($args) && !is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()88–94rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()89–101rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()89–98rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()89–95rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error() && empty($args)89–95rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
isset($args) && !is_wp_error()90–114rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_text_field()
isset($args) && !is_wp_error()90–108rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_url()
isset($args) && !is_wp_error()90–116rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_textarea_field()
!is_wp_error()90–93rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()90rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
isset($args) && !is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()90–96rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
!is_wp_error()90–94rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
isset($args) && !is_wp_error()91–103rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), sanitize_hex_color()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()91–97rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()92–98rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()93–117rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()93–111rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()93–119rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()93–99rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
isset($args) && !is_wp_error()94–118rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
isset($args) && !is_wp_error()94–112rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
isset($args) && !is_wp_error()94–120rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()94–106rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), sanitize_hex_color()
isset($args) && !is_wp_error()95–107rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()95–98rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_boolean()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()95–101rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()95–98rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error()96–99rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()96–143rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong()
!is_wp_error()97–121rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()97–115rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()97–123rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()97–118rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()97–112rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()97–120rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()98–110rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()98–107rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && empty($args)98–104rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array()
!is_wp_error()99–102rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error()99–103rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_object()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()100–106rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
isset($args) && !is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()101–107rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()102–126rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_text_field()
!is_wp_error()102–120rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_url()
!is_wp_error()102–128rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_textarea_field()
!is_wp_error() && !empty($args) && rest_validate_array_contains_unique_items()102–108rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items()
isset($args) && !is_wp_error()103–127rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
isset($args) && !is_wp_error()103–121rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
isset($args) && !is_wp_error()103–129rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()103–115rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), sanitize_hex_color()
isset($args) && !is_wp_error()104–116rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()104–110rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()106–130rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()106–124rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()106–132rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()107–119rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()
!is_wp_error()108–111rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_boolean()
!is_wp_error() && !empty($args) && !rest_validate_array_contains_unique_items()113–119rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), rest_sanitize_array(), rest_validate_array_contains_unique_items(), __(), sprintf()
!is_wp_error()115–139rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_text_field()
!is_wp_error()115–133rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_url()
!is_wp_error()115–141rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_textarea_field()
!is_wp_error()116–128rest_find_any_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), rest_find_one_matching_schema(), is_wp_error(), rest_sanitize_value_from_schema(), __(), sprintf(), _doing_it_wrong(), rest_handle_multi_type_schema(), __(), wp_sprintf(), _doing_it_wrong(), sanitize_hex_color()

This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev30918–14342
8.530918–14342
8.430918–143423 fewer instructions than PHP 8.3
8.331218–14642
8.231218–146421 more instruction than PHP 8.1
8.131118–14542
7.431118–14542

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Uses · 18

Show all 18

Used by · 11

Source code

function rest_sanitize_value_from_schema( $value, $args, $param = '' ) {	if ( isset( $args['anyOf'] ) ) {		$matching_schema = rest_find_any_matching_schema( $value, $args, $param );		if ( is_wp_error( $matching_schema ) ) {			return $matching_schema;		} 		if ( ! isset( $args['type'] ) ) {			$args['type'] = $matching_schema['type'];		} 		$value = rest_sanitize_value_from_schema( $value, $matching_schema, $param );	} 	if ( isset( $args['oneOf'] ) ) {		$matching_schema = rest_find_one_matching_schema( $value, $args, $param );		if ( is_wp_error( $matching_schema ) ) {			return $matching_schema;		} 		if ( ! isset( $args['type'] ) ) {			$args['type'] = $matching_schema['type'];		} 		$value = rest_sanitize_value_from_schema( $value, $matching_schema, $param );	} 	$allowed_types = array( 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null' ); 	if ( ! isset( $args['type'] ) ) {		/* translators: %s: Parameter. */		_doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' );	} 	if ( is_array( $args['type'] ) ) {		$best_type = rest_handle_multi_type_schema( $value, $args, $param ); 		if ( ! $best_type ) {			return null;		} 		$args['type'] = $best_type;	} 	if ( ! in_array( $args['type'], $allowed_types, true ) ) {		_doing_it_wrong(			__FUNCTION__,			/* translators: 1: Parameter, 2: The list of allowed types. */			wp_sprintf( __( 'The "type" schema keyword for %1$s can only be one of the built-in types: %2$l.' ), $param, $allowed_types ),			'5.5.0'		);	} 	if ( 'array' === $args['type'] ) {		$value = rest_sanitize_array( $value ); 		if ( ! empty( $args['items'] ) ) {			foreach ( $value as $index => $v ) {				$value[ $index ] = rest_sanitize_value_from_schema( $v, $args['items'], $param . '[' . $index . ']' );			}		} 		if ( ! empty( $args['uniqueItems'] ) && ! rest_validate_array_contains_unique_items( $value ) ) {			/* translators: %s: Parameter. */			return new WP_Error( 'rest_duplicate_items', sprintf( __( '%s has duplicate items.' ), $param ) );		} 		return $value;	} 	if ( 'object' === $args['type'] ) {		$value = rest_sanitize_object( $value ); 		foreach ( $value as $property => $v ) {			if ( isset( $args['properties'][ $property ] ) ) {				$value[ $property ] = rest_sanitize_value_from_schema( $v, $args['properties'][ $property ], $param . '[' . $property . ']' );				continue;			} 			$pattern_property_schema = rest_find_matching_pattern_property_schema( $property, $args );

Changelog

Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

5.9.0
Added text-field and textarea-field formats.from the docblock
5.6.0
Support the "anyOf" and "oneOf" keywords.from the docblock
5.5.0
Added the $param parameter.from the docblock
4.7.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/rest-api.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.