| @@ -1,15 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: WP Ultimate Post Grid |
| 4 | 4 | Plugin URI: http://bootstrapped.ventures/wp-ultimate-post-grid/ |
| 5 | -Description: Easily create filterable grids for any of your posts, pages or custom post types | |
| 6 | -Version: 1.9 | |
| 5 | +Description: Easily create filterable responsive grids for your posts, pages or custom post types | |
| 6 | +Version: 2.4.0 | |
| 7 | 7 | Author: Bootstrapped Ventures |
| 8 | 8 | Author URI: http://bootstrapped.ventures |
| 9 | 9 | License: GPLv3 |
| 10 | 10 | */ |
| 11 | -define( 'WPUPG_VERSION', '1.9' ); | |
| 11 | +define( 'WPUPG_VERSION', '2.4.0' ); | |
| 12 | 12 | define( 'WPUPG_POST_TYPE', 'wpupg_grid' ); |
| 13 | 13 | |
| 14 | 14 | class WPUltimatePostGrid { |
| 15 | 15 | |
| @@ -215,8 +215,15 @@ | ||
| 215 | 215 | |
| 216 | 216 | public function template( $template ) |
| 217 | 217 | { |
| 218 | 218 | return $this->addon( 'custom-templates' )->get_template( $template ); |
| 219 | + } | |
| 220 | +} | |
| 221 | + | |
| 222 | +// Backward compatibility for older versions of WordPress | |
| 223 | +if( !function_exists( 'get_term_meta' ) ) { | |
| 224 | + function get_term_meta ( $term_id = 0, $key = '', $single = false ) { | |
| 225 | + return ''; | |
| 219 | 226 | } |
| 220 | 227 | } |
| 221 | 228 | |
| 222 | 229 | // Premium version is responsible for instantiating if available |