Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@61444cf from refs/heads/release/5.0-r…
Browse files Browse the repository at this point in the history
…elated-posts
  • Loading branch information
prcdevgitbot committed Mar 11, 2024
1 parent 0b87ef0 commit 3e75507
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions blocks/story-item/class-story-item-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function __construct($attributes = array(), $content = null, $context = a
);
} elseif ( false !== $this->post_id ) {
$temp_post_data = get_post( $this->post_id );

if ( null === $temp_post_data ) {
return new WP_Error(
'404',
Expand Down Expand Up @@ -297,13 +298,6 @@ public function get_label() {
$label = $this->get_first_term($taxonomy);
}

do_action('qm/debug', 'get_label :: ' . print_r(array(
'taxonomy' => $taxonomy,
'post_id' => $this->post_id,
'post_data' => $this->post_data,
'label' => $label,
), true));

if ( empty( $label ) ) {
$label = 'Report';
}
Expand Down Expand Up @@ -359,7 +353,6 @@ public function get_image_slot() {
$image_slot = 'top';
// Unless if we're in a query loop, then default right.
$image_slot = $this->in_query_loop ? 'right' : $image_slot;
do_action('qm/debug', 'get_image_slot :: ' . print_r($image_slot, true));
}
return $image_slot;
}
Expand Down

0 comments on commit 3e75507

Please sign in to comment.