Skip to content

Commit

Permalink
Reverse PR #2098 related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
krishana7911 committed Jan 7, 2025
1 parent 1cf1bba commit a989bf8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/main/controllers/template/RTMediaTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,7 @@ public function add_hidden_fields_in_gallery() {
public function check_return_json() {
global $rtmedia_query;

// // Handle null gracefully by returning early if $rtmedia_query is null or invalid.
// if ( ! is_object( $rtmedia_query ) || ! isset( $rtmedia_query->format ) ) {
// return; // No action needed if $rtmedia_query is not a valid object with the format property.
// }
error_log(print_r($rtmedia_query->format, true));

if ( 'json' === $rtmedia_query->format ) {
error_log('HERE');
error_log(print_r($this->json_output, true));
$this->json_output();
}
}
Expand Down

0 comments on commit a989bf8

Please sign in to comment.