PHPCS fixes

This commit is contained in:
Gerhard 2018-12-12 10:05:03 +02:00
parent 38391f7bbf
commit 5d22d42c9b
1 changed files with 8 additions and 5 deletions

View File

@ -203,10 +203,12 @@ abstract class WC_REST_Controller extends WP_REST_Controller {
}
$_item = new WP_REST_Request( 'DELETE' );
$_item->set_query_params( array(
'id' => $id,
'force' => true,
) );
$_item->set_query_params(
array(
'id' => $id,
'force' => true,
)
);
$_response = $this->delete_item( $_item );
if ( is_wp_error( $_response ) ) {
@ -350,7 +352,8 @@ abstract class WC_REST_Controller extends WP_REST_Controller {
*/
public function validate_setting_textarea_field( $value, $setting ) {
$value = is_null( $value ) ? '' : $value;
return wp_kses( trim( stripslashes( $value ) ),
return wp_kses(
trim( stripslashes( $value ) ),
array_merge(
array(
'iframe' => array(