Plugin Directory

Changeset 2074982


Ignore:
Timestamp:
04/25/2019 08:25:47 PM (7 years ago)
Author:
rmanaf
Message:

2.4.1

Location:
code-injection/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code-injection/trunk/readme.txt

    r2066487 r2074982  
    55Tested up to: 5.1.1
    66Requires PHP: 5.2.4
    7 Stable tag: 2.4.0
     7Stable tag: 2.4.1
    88License: Apache License, Version 2.0
    99License URI: https://github.com/Rmanaf/wp-code-injection/blob/master/LICENSE
     
    1212
    1313== Changelog ==
     14
     15= 2.4.1 =
     16* [fix] Disabled code error
    1417
    1518= 2.4.0 =
  • code-injection/trunk/wp-code-injection.php

    r2066487 r2074982  
    2323    Plugin URI: https://wordpress.org/plugins/code-injection
    2424    Description: Allows You to inject code snippets into the pages by just using the Wordpress shortcode
    25     Version: 2.4.0
     25    Version: 2.4.1
    2626    Author: Arman Afzal
    2727    Author URI: https://github.com/Rmanaf
     
    5555        private static $role_version = '1.0.0';
    5656
    57         private static $client_version = '2.4.0';
     57        private static $client_version = '2.4.1';
    5858
    5959
     
    195195        {
    196196
    197             global $post;
    198 
    199             $temp_post = $post;
    200 
    201197            extract(shortcode_atts(['id' => ''], $atts));
    202198
     
    249245
    250246                }
    251 
    252                 $post = $temp_post;
    253247
    254248                if ($render_shortcodes) {
     
    627621                $is_plugin =  isset($code_is_plugin) && $code_is_plugin == '1';
    628622
     623                if(!isset($code_enabled))
     624                {
     625                   $code_enabled = false;
     626                }
     627
    629628                if(!$is_plugin || $code_enabled == false)
    630629                {
Note: See TracChangeset for help on using the changeset viewer.