Plugin Directory

Changeset 1368087


Ignore:
Timestamp:
03/10/2016 07:32:15 AM (10 years ago)
Author:
The.Missing.Code
Message:

fixed a bug issue with Options.php

Location:
php-code-for-posts
Files:
37 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • php-code-for-posts/trunk/Classes/Options.php

    r1367869 r1368087  
    2323    }
    2424
     25    private function get_default( $option_name )
     26    {
     27        $options = $this->get_defaults();
     28        return $options[ $option_name ] ? : false;
     29    }
     30
    2531    private function load_options()
    2632    {
     
    3642    {
    3743        if (! $this->has_option( $option_name ) ) {
    38             return $this->get_defaults()[$option_name];
     44            return $this->get_default( $option_name ) ;
    3945        }
    4046
  • php-code-for-posts/trunk/php-code-for-posts.php

    r1367869 r1368087  
    33 * Plugin Name: PHP Code For Posts
    44 * Description: Insert and Execute PHP Code in WordPress Content.  This plugin also enables shortcodes for the text widget.
    5  * Version: 2.0.0
     5 * Version: 2.0.1
    66 * Author: Jamie Fraser
    77 * Author uri: http://www.jamiefraser.co.uk/?utm-campaign=PHPCodeForPosts
  • php-code-for-posts/trunk/readme.txt

    r1367869 r1368087  
    55Requires at least: 3.3.1
    66Tested up to: 4.4.2
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9191* Custom shortcode name
    9292* Translation support
     93= 2.0.1 =
     94* Fixed issue in options class with incompatibility with array accessing a function return i.e. foo()['bar']
    9395
    9496== Upgrade Notice ==
     
    106108* Custom shortcode name
    107109* Translation support
     110= 2.0.1 =
     111* Bug fix
    108112
    109113== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.