Plugin Directory

Changeset 2583698


Ignore:
Timestamp:
08/16/2021 06:13:47 PM (5 years ago)
Author:
Lumne
Message:

tagging version 1.2 and fixed initialization bug

Location:
jelly
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • jelly/tags/1.2/jelly.php

    r2582769 r2583698  
    44     * Plugin URI: http://lumne.net/plugins/jelly
    55     * Description: Slideshow designed and developed by Lumne.
    6      * Version: 1.1
     6     * Version: 1.2
    77     * Requires at least: 3.0.1
    88     * Requires PHP 7.4
     
    2626        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2727    */
    28 
    29     /**
    30      * [2021-08-06 JLC] Fatal error found
    31      */
    3228   
    3329    function jelly_activation(){
     
    105101
    106102    function jelly_images(array $args){
    107         $options = get_option('jelly_options');
     103        $options = [];
     104        if ( get_option('jelly_options') ) {
     105            $options = get_option('jelly_options');
     106        }
    108107        $path = plugin_dir_url(__FILE__);
    109108
     
    111110        sort($images);
    112111
    113         $c = ''; // Needs to have a placeholder to avoid PHP 8 warning
     112        $c = '';
    114113        echo '<table class="jelly-image-table" data-delete-image="'.$path.'img/delete.png'.'">';
    115114        foreach($images as $image){
     
    173172                                ), $atts, 'jelly' ) );
    174173
    175         // $active = (in_array('active', $atts)); // Original. Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array
    176174        if (is_array($atts)) {
    177175            $active = (in_array('active', $atts));
  • jelly/tags/1.2/readme.txt

    r2582768 r2583698  
    44Requires at least: 3.0.1
    55Tested up to: 5.8
    6 Stable tag: 1.1
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • jelly/trunk/jelly.php

    r2582769 r2583698  
    44     * Plugin URI: http://lumne.net/plugins/jelly
    55     * Description: Slideshow designed and developed by Lumne.
    6      * Version: 1.1
     6     * Version: 1.2
    77     * Requires at least: 3.0.1
    88     * Requires PHP 7.4
     
    2626        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2727    */
    28 
    29     /**
    30      * [2021-08-06 JLC] Fatal error found
    31      */
    3228   
    3329    function jelly_activation(){
     
    105101
    106102    function jelly_images(array $args){
    107         $options = get_option('jelly_options');
     103        $options = [];
     104        if ( get_option('jelly_options') ) {
     105            $options = get_option('jelly_options');
     106        }
    108107        $path = plugin_dir_url(__FILE__);
    109108
     
    111110        sort($images);
    112111
    113         $c = ''; // Needs to have a placeholder to avoid PHP 8 warning
     112        $c = '';
    114113        echo '<table class="jelly-image-table" data-delete-image="'.$path.'img/delete.png'.'">';
    115114        foreach($images as $image){
     
    173172                                ), $atts, 'jelly' ) );
    174173
    175         // $active = (in_array('active', $atts)); // Original. Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array
    176174        if (is_array($atts)) {
    177175            $active = (in_array('active', $atts));
  • jelly/trunk/readme.txt

    r2582768 r2583698  
    44Requires at least: 3.0.1
    55Tested up to: 5.8
    6 Stable tag: 1.1
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.