Skip to content

Commit

Permalink
Added backward compatibility for replaced shortcodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryA committed Sep 28, 2015
1 parent b1f4c1b commit 3506ec0
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion lib/templates/fragments/deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,24 @@ function beans_wp_title( $title, $sep ) {

return $title;

}
}


/**
* Deprecated shortcodes.
*
* We declare the shortcodes for backward compatibility porpuses but it should be used for further development.
*
* @deprecated 1.2.0
*
* @ignore
*/
global $shortcode_tags;

$shortcode_tags = array_merge( $shortcode_tags, array(
'beans_post_meta_date' => 'beans_post_meta_date_shortcode',
'beans_post_meta_author' => 'beans_post_meta_author_shortcode',
'beans_post_meta_comments' => 'beans_post_meta_comments_shortcode',
'beans_post_meta_tags' => 'beans_post_meta_tags_shortcode',
'beans_post_meta_categories' => 'beans_post_meta_categories_shortcode'
) );

0 comments on commit 3506ec0

Please sign in to comment.