Plugin Directory

Changeset 2727792


Ignore:
Timestamp:
05/21/2022 01:36:49 PM (4 years ago)
Author:
spanrig
Message:

Fixed page selection dropdown bug.

Location:
pollfish-for-wp
Files:
33 added
3 edited

Legend:

Unmodified
Added
Removed
  • pollfish-for-wp/trunk/admin/class-pollfish-for-wordpress-admin.php

    r2536804 r2727792  
    500500            $pages = get_pages();
    501501            foreach ( $pages as $page ) {
    502                 $selected = in_array( $page->ID, $this->Pollfish_For_Wordpress_options['page_landing_trigger'] ) ? ' selected="selected" ' : '';
     502                $selected = '';
     503                if (is_array($this->Pollfish_For_Wordpress_options['page_landing_trigger']) && !is_null($this->Pollfish_For_Wordpress_options['page_landing_trigger'])) {
     504                    $selected = in_array( $page->ID, $this->Pollfish_For_Wordpress_options['page_landing_trigger'] ) ? ' selected="selected" ' : '';
     505                }
    503506                echo '<option value="' .$page->ID. '" '.$selected.'>'.$page->post_title.'</option>';
     507               
    504508            }
     509           
    505510        echo '</select>';
    506511    }
  • pollfish-for-wp/trunk/pollfish-for-wp.php

    r2536804 r2727792  
    77 *
    88 * @link              https://www.upwork.com/fl/hncvj
    9  * @since             1.0.0
     9 * @since             1.1.0
    1010 * @package           Pollfish_For_Wordpress
    1111 *
     
    1414 * Plugin URI:        https://spanrig.com
    1515 * Description:       The plugin enables you to add PollFish Surveys to your wordpress website.
    16  * Version:           1.0.0
     16 * Version:           1.1.0
    1717 * Author:            Spanrig Technologies
    1818 * Author URI:        https://www.upwork.com/fl/hncvj
     
    3232 * Start at version 1.0.0
    3333 */
    34 define( 'Pollfish_For_Wordpress_VERSION', '1.0.0' );
     34define( 'Pollfish_For_Wordpress_VERSION', '1.1.0' );
    3535
    3636/**
  • pollfish-for-wp/trunk/readme.txt

    r2536804 r2727792  
    44Tags: pollfish,survey,surveys,monetization,wordpress
    55Requires at least: 4.0
    6 Tested up to: 5.7
    7 Stable tag: 1.0.0
     6Tested up to: 5.9
     7Stable tag: 1.1.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 The Pollfish for Wordpress plugin enables you to add PollFish Surveys to your Wordpress website and Monetize it easily.
     11The Pollfish for WordPress plugin enables you to add PollFish Surveys to your WordPress website and Monetize it easily.
    1212
    1313== Disclaimer! ==
    1414
    15 This Plugins is not owned or has any affiliation with Pollfish.
     15This Plugin is not owned or has any affiliation with Pollfish.
    1616
    1717== Note ==
    1818
    19 1. Please note that the plugin is using Official Pollfish Javascript SDK file hosted on Google APIs. Google's Terms of use [https://developers.google.com/terms](https://developers.google.com/terms)
     191. Please note that the plugin is using the Official Pollfish Javascript SDK file hosted on Google APIs. Google's Terms of use [https://developers.google.com/terms](https://developers.google.com/terms)
    20202. Link to Pollfish [https://www.pollfish.com/](https://www.pollfish.com/publisher/111440)
    21213. Pollfish Terms of Service: [https://www.pollfish.com/terms/publisher](https://www.pollfish.com/terms/publisher)
     
    6666
    6767
    68 = How do i get Pollfish Account =
     68= How do I get Pollfish Account =
    6969
    7070You can [click here](https://www.pollfish.com/publisher/111440) to create a Pollfish account and get started.
    7171
    72 = What all things I need to start using this plugin? =
     72= What are all things I need to start using this plugin? =
    7373
    74 You need a Publisher Account on [Pollfish](https://www.pollfish.com/publisher/111440), API KEY and SECRET KEY to Start using this plugin.
     74You need a Publisher Account on [Pollfish](https://www.pollfish.com/publisher/111440), API KEY, and SECRET KEY to Start using this plugin.
    7575
    7676= Where do I obtain API KEY and SECRET KEY? =
     
    8989== Changelog ==
    9090
     91= 1.1 =
     92* Fixed page selection dropdown issue.
     93
    9194= 1.0 =
    9295* Initial Release.
Note: See TracChangeset for help on using the changeset viewer.