Plugin Directory

Changeset 2672610


Ignore:
Timestamp:
02/04/2022 01:09:41 AM (3 years ago)
Author:
magicplugins
Message:

Added Wordpress 5.9 support.

Location:
magic-tooltips-for-contact-form-7/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • magic-tooltips-for-contact-form-7/trunk/plugin-index.php

    r2369866 r2672610  
    22/*
    33 * Plugin Name: Magic Tooltips For Contact Form 7
    4  * Version: 1.0.24
     4 * Version: 1.0.26
    55 * Plugin URI: https://contactform7.magictooltips.com
    66 * Description: Easily add tooltips to your Contact Form 7 fields
     
    88 * Author URI: https://contactform7.magictooltips.com
    99 * Requires at least: 3.9
    10  * Tested up to: 5.5
     10 * Tested up to: 5.9
    1111 *
    1212 * @package WordPress
  • magic-tooltips-for-contact-form-7/trunk/readme.txt

    r2369866 r2672610  
    33Tags: tooltips, contact form 7, responsive, mobile friendly
    44Requires at least: 3.2
    5 Tested up to: 5.5
    6 Stable tag: 1.0.24
     5Tested up to: 5.9
     6Stable tag: 1.0.26
    77Stable tag: trunk
    88License: GPLv2 or later
     
    106106
    107107
     108Version v1.0.26
     109
     110    Added Wordpress 5.9 support.
     111
    108112Version v1.0.25
    109113
  • magic-tooltips-for-contact-form-7/trunk/settings.php

    r2089573 r2672610  
    105105function mtfcf7_select_actve_form_render() {
    106106    $options = get_option( 'mtfcf7_settings' );
     107    $active_form = isset($options['active_form']) ? $options['active_form'] : '';
    107108    global $post;
    108109    query_posts(
     
    118119    ?>
    119120    <select name='mtfcf7_settings[active_form]'>
    120         <option value="" <?php selected( $options['active_form'], '' ); ?>>Please select a form</option>
     121        <option value="" <?php selected( $active_form, '' ); ?>>Please select a form</option>
    121122        <?php if ( have_posts()) : ?>
    122123
    123124            <?php while ( have_posts() ) : the_post(); ?>
    124                 <option value="<?php the_ID(); ?>" <?php selected( $options['active_form'], get_the_ID() ); ?>><?php the_title() ?></option>
     125                <option value="<?php the_ID(); ?>" <?php selected( $active_form, get_the_ID() ); ?>><?php the_title() ?></option>
    125126            <?php endwhile; ?>
    126127        <?php endif; ?>
     
    151152
    152153    $options = get_option( 'mtfcf7_settings' );
    153     ?>
    154     <input type='checkbox' name='mtfcf7_settings[focus_input]' <?php checked( $options['focus_input'], 1 ); ?> value='1'> When a form field is currently targeted by the keyboard, or activated by the mouse.
     154    $focus_input = isset($options['focus_input']) ? $options['focus_input'] : '';
     155    ?>
     156    <input type='checkbox' name='mtfcf7_settings[focus_input]' <?php checked( $focus_input, 1 ); ?> value='1'> When a form field is currently targeted by the keyboard, or activated by the mouse.
    155157    <?php
    156158}
Note: See TracChangeset for help on using the changeset viewer.