Changeset 3087160
- Timestamp:
- 05/15/2024 12:57:15 PM (23 months ago)
- Location:
- wp-multitasking/trunk
- Files:
-
- 3 edited
-
includes/shortcodes.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-multitasking.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-multitasking/trunk/includes/shortcodes.php
r3014307 r3087160 16 16 add_filter('get_the_title', array(&$this, 'custom_get_the_title')); 17 17 add_filter('the_excerpt', array(&$this, 'custom_excerpt_shortcode')); 18 add_filter('get_the_excerpt', array(&$this, 'custom_ excerpt_shortcode'));18 add_filter('get_the_excerpt', array(&$this, 'custom_get_excerpt_shortcode')); 19 19 add_filter('rank_math/frontend/title', array(&$this, 'custom_seo_title')); 20 20 add_filter('rank_math/frontend/description', array(&$this, 'custom_seo_description')); … … 107 107 # Custom excerpt output 108 108 /* ----------------------------------------------------------------------------------- */ 109 function custom_excerpt_shortcode() { 110 global $post; 111 $excerpt = $post->post_excerpt; 109 function custom_excerpt_shortcode($excerpt) { 110 // global $post; 111 // $excerpt = $post->post_excerpt; 112 if (!empty($excerpt)) { 113 $excerpt = do_shortcode($excerpt); 114 } 115 $excerpt = strip_tags($excerpt); 116 return $excerpt; 117 } 118 function custom_get_excerpt_shortcode($excerpt, $post = null) { 119 if ($post) { 120 $excerpt = $post->post_excerpt; 121 } 112 122 if (!empty($excerpt)) { 113 123 $excerpt = do_shortcode($excerpt); -
wp-multitasking/trunk/readme.txt
r3027625 r3087160 5 5 Requires at least: 2.1.0 6 6 Tested up to: 6.4.2 7 Stable tag: 0.1.1 17 Stable tag: 0.1.12 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 84 84 == Changelog == 85 85 86 = 0.1.12 = 87 * Fix bug post excerpt 88 86 89 = 0.1.11 = 87 90 * Exclude post type is not viewable -
wp-multitasking/trunk/wp-multitasking.php
r3027625 r3087160 4 4 Plugin URI: http://wordpress.org/plugins/wp-multitasking/ 5 5 Description: This plugin is synthetic utility for your WordPress site: Shortcode, BBCode, AddQuickTag, Exit pop-up, Welcome pop-up, Remove base slug, SMTP, Classic Editor, Classic widgets... 6 Version: 0.1.1 16 Version: 0.1.12 7 7 Author: thangnv27 8 8 Author URI: https://ngothang.me/
Note: See TracChangeset
for help on using the changeset viewer.