Showing 222 of 244 total issues
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return $meta_update;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: minimum number, 3: maximum number */ __( '%1$s must be between %2$d (exclusive) and %3$d (exclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
Avoid too many return
statements within this method. Open
Open
return sanitize_text_field( $value );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: minimum number, 3: maximum number */ __( '%1$s must be between %2$d (inclusive) and %3$d (exclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be less than %2$d (exclusive)' ), $param, $args['maximum'] ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be less than %2$d (inclusive)' ), $param, $args['maximum'] ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_cannot_delete', __( 'The post cannot be deleted.' ), array( 'status' => 500 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post parent id.' ), array( 'status' => 400 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s.' ), $param, 'string' ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_date', __( 'The date you provided is invalid.' ) );
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return apply_filters( "rest_pre_insert_{$this->post_type}", $prepared_post, $request );
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return sanitize_text_field( $value );
Avoid too many return
statements within this method. Open
Open
return esc_url_raw( $value );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_email', __( 'The email address you provided is invalid.' ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be greater than %2$d (exclusive)' ), $param, $args['minimum'] ) );