Skip to content

Commit

Permalink
check version to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
themefuse committed May 26, 2015
1 parent 7d67c0d commit 9c347a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extension/shortcodes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,13 @@ A better solution would be to assign shortcode an unique id and enqueue in head
'1.3.8',
'>='
)
&&
version_compare(
// the $data['post'] parameter was added in Shortcodes v1.2.12
fw_ext('shortcodes')->manifest->get_version(),
'1.2.12',
'>='
)
) {
$atts = fw_ext('editor-shortcodes')->decode_shortcode_atts($atts, $shortcode, $data['post']->ID);
} else {
Expand Down

0 comments on commit 9c347a6

Please sign in to comment.