|
@@ 90-95 (lines=6) @@
|
| 87 |
|
break; |
| 88 |
|
|
| 89 |
|
case 'footer_widgets' : |
| 90 |
|
if ( is_string( $value ) ) |
| 91 |
|
$settings[ $key ] = sanitize_title( $value ); |
| 92 |
|
elseif ( is_array( $value ) ) |
| 93 |
|
$settings[ $key ] = array_map( 'sanitize_title', $value ); |
| 94 |
|
elseif ( is_bool( $value ) ) |
| 95 |
|
$settings[ $key ] = $value; |
| 96 |
|
|
| 97 |
|
break; |
| 98 |
|
|
|
@@ 1611-1617 (lines=7) @@
|
| 1608 |
|
} |
| 1609 |
|
|
| 1610 |
|
// Check the element type, so that we're only recursing if we really have to. |
| 1611 |
|
if ( is_array( $el ) || is_object( $el ) ) { |
| 1612 |
|
$output[ $clean_id ] = _wp_json_sanity_check( $el, $depth - 1 ); |
| 1613 |
|
} elseif ( is_string( $el ) ) { |
| 1614 |
|
$output[ $clean_id ] = _wp_json_convert_string( $el ); |
| 1615 |
|
} else { |
| 1616 |
|
$output[ $clean_id ] = $el; |
| 1617 |
|
} |
| 1618 |
|
} |
| 1619 |
|
} elseif ( is_object( $data ) ) { |
| 1620 |
|
$output = new stdClass; |