Plugin Directory

Changeset 1151509


Ignore:
Timestamp:
05/02/2015 12:25:33 AM (11 years ago)
Author:
pogidude
Message:

fix postmatic name field required checkbox not saving

Location:
magic-action-box
Files:
6 deleted
5 edited
59 copied

Legend:

Unmodified
Added
Removed
  • magic-action-box/tags/2.16.4/magic-action-box.php

    r1141484 r1151509  
    44 * Plugin URI: http://magicactionbox.com
    55 * Description: Supercharge your blog posts!
    6  * Version: 2.16.3
     6 * Version: 2.16.4
    77 * Author: Prosulum, LLC
    88 * Author URI: http://prosulum.com
     
    1010 */
    1111
    12 define( 'MAB_VERSION', '2.16.3');
     12define( 'MAB_VERSION', '2.16.4');
    1313//e.g. /var/www/example.com/wordpress/wp-content/plugins/after-post-action-box
    1414define( "MAB_DIR", plugin_dir_path( __FILE__ ) );
  • magic-action-box/tags/2.16.4/readme.txt

    r1141484 r1151509  
    44Tags: opt in, call to action, aweber, email, email marketing, form, mailing list, marketing, newsletter, webform, mailchimp, constant contact
    55Requires at least: 3.5
    6 Tested up to: 4.2
    7 Stable tag: 2.16.3
     6Tested up to: 4.2.1
     7Stable tag: 2.16.4
    88
    99Magic Action Box let's you display professional looking opt-in forms and feature boxes in your WordPress site.
     
    100100
    101101== Changelog ==
     102= 2.16.4 =
     103*2015-05-02*
     104* fix postmatic name field required checkbox not saving
     105
    102106= 2.16.3 =
    103107*2015-04-22*
  • magic-action-box/tags/2.16.4/views/metaboxes/optin-providers/postmatic.php

    r1134385 r1151509  
    4242        $reqFields = isset( $meta['optin']['required-fields'] ) && is_array( $meta['optin']['required-fields'] ) ? $meta['optin']['required-fields'] : array();
    4343        ?>
    44         <label for="mab-required-field-name"><input type="checkbox" id="mab-required-field-name" name="mab[optin][required-fields][]" value="name" <?php checked( true, in_array( 'fname', $reqFields ) ); ?> ><?php _e('Make this field required', 'mab'); ?></label>
     44        <label for="mab-required-field-name"><input type="checkbox" id="mab-required-field-name" name="mab[optin][required-fields][]" value="fname" <?php checked( true, in_array( 'fname', $reqFields ) ); ?> ><?php _e('Make this field required', 'mab'); ?></label>
    4545       
    4646        <div class="clear"></div>
  • magic-action-box/tags/2.16.4/views/optinforms/postmatic.php

    r1134385 r1151509  
    2222$fnameReq = '';
    2323if(!empty($optinMeta['required-fields'])){
    24     $fnameReq = in_array('fname',$optinMeta['enabled-fields']) ? 'required' : '';
     24    $fnameReq = in_array('fname',$optinMeta['required-fields']) ? 'required' : '';
    2525}
    2626
  • magic-action-box/trunk/magic-action-box.php

    r1141484 r1151509  
    44 * Plugin URI: http://magicactionbox.com
    55 * Description: Supercharge your blog posts!
    6  * Version: 2.16.3
     6 * Version: 2.16.4
    77 * Author: Prosulum, LLC
    88 * Author URI: http://prosulum.com
     
    1010 */
    1111
    12 define( 'MAB_VERSION', '2.16.3');
     12define( 'MAB_VERSION', '2.16.4');
    1313//e.g. /var/www/example.com/wordpress/wp-content/plugins/after-post-action-box
    1414define( "MAB_DIR", plugin_dir_path( __FILE__ ) );
  • magic-action-box/trunk/readme.txt

    r1141484 r1151509  
    44Tags: opt in, call to action, aweber, email, email marketing, form, mailing list, marketing, newsletter, webform, mailchimp, constant contact
    55Requires at least: 3.5
    6 Tested up to: 4.2
    7 Stable tag: 2.16.3
     6Tested up to: 4.2.1
     7Stable tag: 2.16.4
    88
    99Magic Action Box let's you display professional looking opt-in forms and feature boxes in your WordPress site.
     
    100100
    101101== Changelog ==
     102= 2.16.4 =
     103*2015-05-02*
     104* fix postmatic name field required checkbox not saving
     105
    102106= 2.16.3 =
    103107*2015-04-22*
  • magic-action-box/trunk/views/metaboxes/optin-providers/postmatic.php

    r1134385 r1151509  
    4242        $reqFields = isset( $meta['optin']['required-fields'] ) && is_array( $meta['optin']['required-fields'] ) ? $meta['optin']['required-fields'] : array();
    4343        ?>
    44         <label for="mab-required-field-name"><input type="checkbox" id="mab-required-field-name" name="mab[optin][required-fields][]" value="name" <?php checked( true, in_array( 'fname', $reqFields ) ); ?> ><?php _e('Make this field required', 'mab'); ?></label>
     44        <label for="mab-required-field-name"><input type="checkbox" id="mab-required-field-name" name="mab[optin][required-fields][]" value="fname" <?php checked( true, in_array( 'fname', $reqFields ) ); ?> ><?php _e('Make this field required', 'mab'); ?></label>
    4545       
    4646        <div class="clear"></div>
  • magic-action-box/trunk/views/optinforms/postmatic.php

    r1134385 r1151509  
    2222$fnameReq = '';
    2323if(!empty($optinMeta['required-fields'])){
    24     $fnameReq = in_array('fname',$optinMeta['enabled-fields']) ? 'required' : '';
     24    $fnameReq = in_array('fname',$optinMeta['required-fields']) ? 'required' : '';
    2525}
    2626
Note: See TracChangeset for help on using the changeset viewer.