Changeset 2215238
- Timestamp:
- 12/19/2019 04:38:45 PM (6 years ago)
- Location:
- shortcode-enablr
- Files:
-
- 2 added
- 1 edited
- 4 moved
-
tags/1.1.2 (added)
-
tags/1.1.2/index.php (moved) (moved from shortcode-enablr/tags/1.1.1/index.php)
-
tags/1.1.2/readme.txt (moved) (moved from shortcode-enablr/tags/1.1.1/readme.txt)
-
tags/1.1.2/shortcode-enablr.php (moved) (moved from shortcode-enablr/tags/1.1.1/shortcode-enablr.php) (3 diffs)
-
tags/1.1.2/templates (added)
-
tags/1.1.2/templates/settings.php (moved) (moved from shortcode-enablr/tags/1.1.1/templates/settings.php)
-
trunk/shortcode-enablr.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shortcode-enablr/tags/1.1.2/shortcode-enablr.php
r2215237 r2215238 6 6 * Description: Shortcode enabler. 7 7 * Author: Herdl 8 * Version: 1.1. 18 * Version: 1.1.2 9 9 * Author URI: https://herdl.com 10 10 */ … … 55 55 56 56 if (get_option('shortcode_enablr_yoast_title_enable') === 'yes') { 57 if (is_plugin_active('wordpress-seo/wp-seo.php') || is_plugin_active('wordpress-seo-premium/wp-seo-premium.php')) { 58 add_filter('wpseo_title', 'shortcode_enablr_wpseo_title'); 57 add_filter('wpseo_title', 'shortcode_enablr_wpseo_title'); 59 58 60 function shortcode_enablr_wpseo_title($title) 61 { 62 return do_shortcode($title); 63 } 59 function shortcode_enablr_wpseo_title($title) 60 { 61 return do_shortcode($title); 64 62 } 65 63 } … … 67 65 add_action('admin_menu', 'shortcode_enablr_register_settings'); 68 66 add_action('wp_footer', 'shortcode_enablr_render_script'); 69 -
shortcode-enablr/trunk/shortcode-enablr.php
r2215175 r2215238 6 6 * Description: Shortcode enabler. 7 7 * Author: Herdl 8 * Version: 1.1. 08 * Version: 1.1.2 9 9 * Author URI: https://herdl.com 10 10 */ … … 41 41 42 42 if (get_option('shortcode_enablr_acf_enable') === 'yes') { 43 add_filter('acf/format_value', 'shortcode_enablr_acf_format_value'); 43 if (!class_exists('ACF')) { 44 add_filter('acf/format_value', 'shortcode_enablr_acf_format_value'); 44 45 45 function shortcode_enablr_acf_format_value($value, $post_id, $field) { 46 if (!is_array($value)) { 47 $value = do_shortcode($value); 46 function shortcode_enablr_acf_format_value($value, $post_id, $field) { 47 if (!is_array($value)) { 48 $value = do_shortcode($value); 49 } 50 51 return $value; 48 52 } 49 50 return $value;51 53 } 52 54 } … … 55 57 add_filter('wpseo_title', 'shortcode_enablr_wpseo_title'); 56 58 57 function shortcode_enablr_wpseo_title($title) { 59 function shortcode_enablr_wpseo_title($title) 60 { 58 61 return do_shortcode($title); 59 62 }
Note: See TracChangeset
for help on using the changeset viewer.