Skip to content

Commit 1712feb

Browse files
committed
chore: fix code style issues
1 parent eb649c6 commit 1712feb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

inc/media_offload.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,11 +2761,11 @@ private function get_offloaded_attachment_url( $attachment_id, $url ) {
27612761
public static function clear_offload_errors_meta() {
27622762
global $wpdb;
27632763

2764-
$query = $wpdb->prepare(
2765-
"DELETE FROM {$wpdb->postmeta} WHERE meta_key = %s",
2766-
self::META_KEYS['offload_error']
2764+
return $wpdb->query(
2765+
$wpdb->prepare(
2766+
"DELETE FROM {$wpdb->postmeta} WHERE meta_key = %s",
2767+
self::META_KEYS['offload_error']
2768+
)
27672769
);
2768-
2769-
return $wpdb->query( $query );
27702770
}
27712771
}

inc/rest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ public function number_of_images_and_pages( WP_REST_Request $request ) {
875875
*
876876
* @return WP_REST_Response
877877
*/
878-
public function clear_offload_errors( \WP_REST_Request $request ) {
878+
public function clear_offload_errors( WP_REST_Request $request ) {
879879
$delete_count = Optml_Media_Offload::clear_offload_errors_meta();
880880

881881
return $this->response( [ 'success' => $delete_count ] );

0 commit comments

Comments
 (0)