Plugin Directory

Changeset 3438467


Ignore:
Timestamp:
01/13/2026 10:06:40 AM (3 months ago)
Author:
mdforiduddin
Message:

Update to version 2.0.0 from GitHub

Location:
current-post-shortcode
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • current-post-shortcode/tags/2.0.0/current-post-shortcode.php

    r3436990 r3438467  
    55 * Plugin URI: https://github.com/mdforiduddin/
    66 * Description: The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes.
    7  * Version: 1.2.0
     7 * Version: 2.0.0
    88 * Author: Md Forid Uddin
    99 * Author URI: https://foriduddin.netlify.app/
  • current-post-shortcode/tags/2.0.0/includes/frontend/shortcode.php

    r3438451 r3438467  
    4444
    4545            /*
    46              * If meta value not exists or empty, return default value
     46             * If value found, return it; otherwise return default value
    4747             */
    48             if ( empty( $meta_value ) ) {
    49                 return $atts['default'];
     48            if ( !empty( $meta_value ) ) {
     49                return $meta_value;
    5050            }
    5151
    52             return $meta_value;
     52            return $atts['default'];
    5353        }
    5454
  • current-post-shortcode/tags/2.0.0/readme.txt

    r3436990 r3438467  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.2.0
     7Stable tag: 2.0.0
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    4646== Changelog ==
    4747
    48 = 1.2.0 =
     48= 1.2.2 =
    4949* Added post meta fallback message when meta value does not exist.
    5050
  • current-post-shortcode/trunk/current-post-shortcode.php

    r3436990 r3438467  
    55 * Plugin URI: https://github.com/mdforiduddin/
    66 * Description: The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes.
    7  * Version: 1.2.0
     7 * Version: 2.0.0
    88 * Author: Md Forid Uddin
    99 * Author URI: https://foriduddin.netlify.app/
  • current-post-shortcode/trunk/includes/frontend/shortcode.php

    r3438451 r3438467  
    4444
    4545            /*
    46              * If meta value not exists or empty, return default value
     46             * If value found, return it; otherwise return default value
    4747             */
    48             if ( empty( $meta_value ) ) {
    49                 return $atts['default'];
     48            if ( !empty( $meta_value ) ) {
     49                return $meta_value;
    5050            }
    5151
    52             return $meta_value;
     52            return $atts['default'];
    5353        }
    5454
  • current-post-shortcode/trunk/readme.txt

    r3436990 r3438467  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.2.0
     7Stable tag: 2.0.0
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    4646== Changelog ==
    4747
    48 = 1.2.0 =
     48= 1.2.2 =
    4949* Added post meta fallback message when meta value does not exist.
    5050
Note: See TracChangeset for help on using the changeset viewer.