Plugin Directory

Changeset 2492226


Ignore:
Timestamp:
03/10/2021 02:39:27 PM (5 years ago)
Author:
akirak
Message:

Allow values to have markups

Location:
custom-global-variables/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-global-variables/trunk/custom-global-variables.php

    r2490663 r2492226  
    22/**
    33 * Plugin Name: Custom Global Variables
    4  * Plugin URI: https://www.newtarget.com
     4 * Plugin URI: https://www.newtarget.com/solutions/wordpress-websites
    55 * Description: Easily create custom variables that can be accessed globally in Wordpress and PHP. Retrieval of information is extremely fast, with no database calls.
    6  * Version: 1.1.1
     6 * Version: 1.1.2
    77 * Author: new target, inc
    88 * Author URI: https://www.newtarget.com
     
    9595            foreach ( $_POST['vars'] as $var ) {
    9696                $var['name'] = sanitize_textarea_field($var['name']);
    97                 $var['val'] = sanitize_textarea_field($var['val']);
    9897
    9998                if ( ! empty( $var['name'] ) && !empty( $var['val'] ) ) {
     
    156155                                    <?php
    157156                                    $key = esc_html($key);
    158                                     $val = esc_html($val);
    159157                                    ?>
    160158
     
    222220        $param0 = sanitize_text_field($params[0]);
    223221        if ( ! empty( $GLOBALS['cgv'][ $param0 ])  ) {
    224             return esc_html($GLOBALS['cgv'][ $param0 ]);
     222            return $GLOBALS['cgv'][ $param0 ];
    225223        }
    226224
  • custom-global-variables/trunk/readme.txt

    r2490663 r2492226  
    33Tags: custom global variables, variables, options, settings, shortcodes, shortcode, global variables, global options, global settings, custom variables, custom options, custom settings, custom shortcodes, custom shortcode, php variables
    44Author URI: https://www.newtarget.com
    5 Plugin URI: https://www.newtarget.com
     5Plugin URI: https://www.newtarget.com/solutions/wordpress-websites
    66Requires at least: 3.0.1
    77Tested up to: 5.6.2
    8 Stable tag: 1.1.1
     8Stable tag: 1.1.2
    99Requires PHP: 5.6
    1010License: GPLv2 or later
     
    5555
    5656== Changelog ==
     57= 1.1.2 =
     58
     59* Updated to be able to use markups in value fields.
     60
    5761= 1.1.1 =
    5862
Note: See TracChangeset for help on using the changeset viewer.