Changeset 3438467
- Timestamp:
- 01/13/2026 10:06:40 AM (3 months ago)
- Location:
- current-post-shortcode
- Files:
-
- 6 edited
- 1 copied
-
tags/2.0.0 (copied) (copied from current-post-shortcode/trunk)
-
tags/2.0.0/current-post-shortcode.php (modified) (1 diff)
-
tags/2.0.0/includes/frontend/shortcode.php (modified) (1 diff)
-
tags/2.0.0/readme.txt (modified) (2 diffs)
-
trunk/current-post-shortcode.php (modified) (1 diff)
-
trunk/includes/frontend/shortcode.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
current-post-shortcode/tags/2.0.0/current-post-shortcode.php
r3436990 r3438467 5 5 * Plugin URI: https://github.com/mdforiduddin/ 6 6 * Description: The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes. 7 * Version: 1.2.07 * Version: 2.0.0 8 8 * Author: Md Forid Uddin 9 9 * Author URI: https://foriduddin.netlify.app/ -
current-post-shortcode/tags/2.0.0/includes/frontend/shortcode.php
r3438451 r3438467 44 44 45 45 /* 46 * If meta value not exists or empty,return default value46 * If value found, return it; otherwise return default value 47 47 */ 48 if ( empty( $meta_value ) ) {49 return $ atts['default'];48 if ( !empty( $meta_value ) ) { 49 return $meta_value; 50 50 } 51 51 52 return $ meta_value;52 return $atts['default']; 53 53 } 54 54 -
current-post-shortcode/tags/2.0.0/readme.txt
r3436990 r3438467 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.2.07 Stable tag: 2.0.0 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.txt … … 46 46 == Changelog == 47 47 48 = 1.2. 0=48 = 1.2.2 = 49 49 * Added post meta fallback message when meta value does not exist. 50 50 -
current-post-shortcode/trunk/current-post-shortcode.php
r3436990 r3438467 5 5 * Plugin URI: https://github.com/mdforiduddin/ 6 6 * Description: The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes. 7 * Version: 1.2.07 * Version: 2.0.0 8 8 * Author: Md Forid Uddin 9 9 * Author URI: https://foriduddin.netlify.app/ -
current-post-shortcode/trunk/includes/frontend/shortcode.php
r3438451 r3438467 44 44 45 45 /* 46 * If meta value not exists or empty,return default value46 * If value found, return it; otherwise return default value 47 47 */ 48 if ( empty( $meta_value ) ) {49 return $ atts['default'];48 if ( !empty( $meta_value ) ) { 49 return $meta_value; 50 50 } 51 51 52 return $ meta_value;52 return $atts['default']; 53 53 } 54 54 -
current-post-shortcode/trunk/readme.txt
r3436990 r3438467 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.2.07 Stable tag: 2.0.0 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.txt … … 46 46 == Changelog == 47 47 48 = 1.2. 0=48 = 1.2.2 = 49 49 * Added post meta fallback message when meta value does not exist. 50 50
Note: See TracChangeset
for help on using the changeset viewer.