Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions class-gistpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ public function delete_gist_transients( $post_id, WP_Post $post_after, WP_Post $
$this->delete_shortcode_transients = true;

// Run the shortcodes to clear associated transients.
do_shortcode( $post_after->post_content );
do_shortcode( $post_before->post_content );
do_shortcode( $GLOBALS['wp_embed']->autoembed( $post_after->post_content ) );
do_shortcode( $GLOBALS['wp_embed']->autoembed( $post_before->post_content ) );

// Delete raw transients whose keys match a post meta fallback.
$keys = get_post_custom_keys( $post_id );
Expand Down Expand Up @@ -602,7 +602,7 @@ protected function rebuild_shortcode( array $rawattr ) {
$attrs[] = $key . '="' . $value . '"';
}
}
return '[gist ' . implode( ' ', $rawattr ) . ']';
return '[gist ' . implode( ' ', $attrs ) . ']';
}

/**
Expand Down