Plugin Directory

Changeset 1368424


Ignore:
Timestamp:
03/10/2016 04:31:06 PM (10 years ago)
Author:
The.Missing.Code
Message:

fixed issue with params not passing through

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

Legend:

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

    r1368099 r1368424  
    145145
    146146                if( $state ) {
    147                     PhpCodeForPosts_Messages::add_success_message( __( 'Snippet saved', PhpCodeforPosts::TEXTDOMAIN ) );
     147                    $shortcode = '[' . PhpCodeForPosts_Shortcode::get_shortcode() . ' snippet=' . PhpCodeForPosts_Snippet::$last_saved_snippet->get_id() . ']';
     148                    PhpCodeForPosts_Messages::add_success_message( __( 'Snippet saved', PhpCodeforPosts::TEXTDOMAIN ) .  ' - ' . $shortcode );
    148149                } else {
    149150                    PhpCodeForPosts_Messages::add_error_message( __( 'Failed to save snippet - has it changed?', PhpCodeforPosts::TEXTDOMAIN ) );
  • php-code-for-posts/trunk/Classes/Shortcode.php

    r1368099 r1368424  
    2727        $snippet_prefix = '?>';
    2828
    29         if( $param != '' ) {
     29        if( $attributes['param'] != '' ) {
    3030            $snippet_prefix = '$_parameters = array(); parse_str(htmlspecialchars_decode("'
    31                 . $param . '"), $_parameters);' . $snippet_prefix;
     31                . $attributes['param'] . '"), $_parameters);' . $snippet_prefix;
    3232        }
    3333
  • php-code-for-posts/trunk/php-code-for-posts.php

    r1368398 r1368424  
    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.3
     5 * Version: 2.0.4
    66 * Author: Jamie Fraser
    77 * Author uri: http://www.jamiefraser.co.uk/?utm-campaign=PHPCodeForPosts
  • php-code-for-posts/trunk/readme.txt

    r1368408 r1368424  
    55Requires at least: 3.3.1
    66Tested up to: 4.4.2
    7 Stable tag: 2.0.3
     7Stable tag: 2.0.4
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9797= 2.0.3 =
    9898* Based on feedback, I have removed an anonymous function
     99= 2.0.4 =
     100* Fixed issue with parameters not passing through correctly
    99101
    100102== Upgrade Notice ==
     
    118120= 2.0.3 =
    119121* removal of anonymous function
     122= 2.0.4 =
     123* Fixed issue with parameters not passing through correctly
     124
    120125
    121126== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.