Plugin Directory

Changeset 2765703


Ignore:
Timestamp:
08/03/2022 11:48:50 AM (4 years ago)
Author:
businessoptimizer
Message:

1.0.2 - Fixed a wrong field name

Location:
optimizer-shortcodes-email
Files:
10 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • optimizer-shortcodes-email/trunk/optimizer-shortcodes-email.php

    r2755056 r2765703  
    44 * Plugin URI:        https://businessoptimizer.org/collections/plugins
    55 * Description:       Provides a simple text field for an email address that can be used throughout the site with a shortcode.
    6  * Version:           1.0.1
     6 * Version:           1.0.2
    77 * Requires at least: 5
    88 * Requires PHP:      7.3
     
    142142    function shortcode_handling( $atts, $content, $tag ) {
    143143        $option = get_option( self::$core_name . '_options' );
    144         if ( !empty( $option ) && !empty( $option[ self::$core_name . '_field_one' ] ) ) {
    145             $content = $option[ self::$core_name . '_field_one' ];
     144        if ( !empty( $option ) && !empty( $option[ self::$core_name . '_field_email' ] ) ) {
     145            $content = $option[ self::$core_name . '_field_email' ];
    146146        }
    147147
  • optimizer-shortcodes-email/trunk/readme.txt

    r2755056 r2765703  
    55Tested up to: 6.0
    66Requires PHP: 7.3
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141= 1.0.1 =
    4242* Tested for WP 6.0+
     43
     44= 1.0.2 =
     45* Fixed wrong field name that was breaking the shortcode
Note: See TracChangeset for help on using the changeset viewer.