Changeset 2492226
- Timestamp:
- 03/10/2021 02:39:27 PM (5 years ago)
- Location:
- custom-global-variables/trunk
- Files:
-
- 2 edited
-
custom-global-variables.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-global-variables/trunk/custom-global-variables.php
r2490663 r2492226 2 2 /** 3 3 * Plugin Name: Custom Global Variables 4 * Plugin URI: https://www.newtarget.com 4 * Plugin URI: https://www.newtarget.com/solutions/wordpress-websites 5 5 * 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. 16 * Version: 1.1.2 7 7 * Author: new target, inc 8 8 * Author URI: https://www.newtarget.com … … 95 95 foreach ( $_POST['vars'] as $var ) { 96 96 $var['name'] = sanitize_textarea_field($var['name']); 97 $var['val'] = sanitize_textarea_field($var['val']);98 97 99 98 if ( ! empty( $var['name'] ) && !empty( $var['val'] ) ) { … … 156 155 <?php 157 156 $key = esc_html($key); 158 $val = esc_html($val);159 157 ?> 160 158 … … 222 220 $param0 = sanitize_text_field($params[0]); 223 221 if ( ! empty( $GLOBALS['cgv'][ $param0 ]) ) { 224 return esc_html($GLOBALS['cgv'][ $param0 ]);222 return $GLOBALS['cgv'][ $param0 ]; 225 223 } 226 224 -
custom-global-variables/trunk/readme.txt
r2490663 r2492226 3 3 Tags: 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 4 4 Author URI: https://www.newtarget.com 5 Plugin URI: https://www.newtarget.com 5 Plugin URI: https://www.newtarget.com/solutions/wordpress-websites 6 6 Requires at least: 3.0.1 7 7 Tested up to: 5.6.2 8 Stable tag: 1.1. 18 Stable tag: 1.1.2 9 9 Requires PHP: 5.6 10 10 License: GPLv2 or later … … 55 55 56 56 == Changelog == 57 = 1.1.2 = 58 59 * Updated to be able to use markups in value fields. 60 57 61 = 1.1.1 = 58 62
Note: See TracChangeset
for help on using the changeset viewer.