Plugin Directory

Changeset 752494


Ignore:
Timestamp:
08/06/2013 08:00:35 PM (13 years ago)
Author:
The.Missing.Code
Message:

Tested for wp 3.6 and added functions to set and get variables easier

Location:
php-code-for-posts/tags/1.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php-code-for-posts/tags/1.1/PHPPostCode.php

    r624848 r752494  
    630630    <?php
    631631           }
     632
     633        /*
     634        * set variables into the _vars array
     635        *
     636        * @since 1.1
     637        * @author The Missing Code
     638        */
     639        function set_variable($key, $value) {
     640            $this->_vars[$key] = $value;
     641        }
     642
     643        /**
     644         * get variable from the _vars array
     645         *
     646         * @since 1.1
     647         * @author The Missing Code
     648        **/
     649        function get_variable($key) {
     650            return $this->_vars[$key];
     651        }
     652
    632653      }
    633654    // End of the class
  • php-code-for-posts/tags/1.1/readme.txt

    r624848 r752494  
    44Tags: PHP, allow php, exec php, execute php, php shortcode, php in posts, use php, embed html
    55Requires at least: 3.3.1
    6 Tested up to: 3.4.3
    7 Stable tag: 1.0
     6Tested up to: 3.6
     7Stable tag: 1.1
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5353= 1.1 =
    5454* Added missing functionality for delete single snippet
    55 * Tested for WP 3.4.3
     55* Tested for WP 3.6
     56* Added class functions for getting and setting shared variables (get_variable and set_variable)
    5657
    5758== Upgrade Notice ==
     
    6162= 1.1 =
    6263* Added in missing functionality
    63 * Tested for WP 3.4.3
     64* Tested for WP 3.6
    6465
    6566
Note: See TracChangeset for help on using the changeset viewer.