Changeset 2088704
- Timestamp:
- 05/16/2019 12:32:20 AM (5 years ago)
- Location:
- option-tree/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
option-tree/trunk/composer.json
r2069540 r2088704 2 2 "name": "valendesigns/option-tree", 3 3 "description": "Theme Options UI Builder for WordPress.", 4 4 5 "type": "wordpress-plugin", 5 6 "homepage": "https://github.com/valendesigns/option-tree", -
option-tree/trunk/includes/ot-functions-admin.php
r2069540 r2088704 567 567 if ( 'post' === $context ) { 568 568 if ( current_user_can( 'unfiltered_html' ) || true === OT_ALLOW_UNFILTERED_HTML ) { 569 $tags['script'] = array_fill_keys( array( 'async', 'charset', 'defer', 'src', 'type' ), 1 ); 570 $tags['style'] = array_fill_keys( array( 'media', 'type' ), 1 ); 571 $tags['iframe'] = array_fill_keys( array( 'align', 'frameborder', 'height', 'longdesc', 'marginheight', 'marginwidth', 'name', 'sandbox', 'scrolling', 'src', 'srcdoc', 'width' ), 1 ); 569 $tags['script'] = array_fill_keys( array( 'async', 'charset', 'defer', 'src', 'type' ), 1 ); 570 $tags['style'] = array_fill_keys( array( 'media', 'type' ), 1 ); 571 $tags['iframe'] = array_fill_keys( array( 'align', 'frameborder', 'height', 'longdesc', 'marginheight', 'marginwidth', 'name', 'sandbox', 'scrolling', 'src', 'srcdoc', 'style', 'width' ), 1 ); 572 $tags['noscript'] = array(); 572 573 573 574 $tags = apply_filters( 'ot_allowed_html', $tags ); … … 732 733 $input_safe = sanitize_textarea_field( $input ); 733 734 } else { 734 735 /** 736 * Filter the array values recursively. 737 * 738 * @param array $values The value to sanitize. 739 * 740 * @return array 741 */ 742 function _sanitize_recursive( $values = array() ) { 743 $result = array(); 744 foreach ( $values as $key => $value ) { 745 if ( ! is_object( $value ) ) { 746 if ( is_scalar( $value ) ) { 747 $result[ $key ] = sanitize_textarea_field( $value ); 748 } else { 749 $result[ $key ] = _sanitize_recursive( $value ); 735 if ( ! function_exists( '_sanitize_recursive' ) ) { 736 /** 737 * Filter the array values recursively. 738 * 739 * @param array $values The value to sanitize. 740 * 741 * @return array 742 */ 743 function _sanitize_recursive( $values = array() ) { 744 $result = array(); 745 foreach ( $values as $key => $value ) { 746 if ( ! is_object( $value ) ) { 747 if ( is_scalar( $value ) ) { 748 $result[ $key ] = sanitize_textarea_field( $value ); 749 } else { 750 $result[ $key ] = _sanitize_recursive( $value ); 751 } 750 752 } 751 753 } 754 755 752 756 } 753 754 return $result;755 757 } 756 757 758 $input_safe = _sanitize_recursive( $input ); 758 759 } -
option-tree/trunk/ot-loader.php
r2069540 r2088704 4 4 * Plugin URI: https://github.com/valendesigns/option-tree/ 5 5 * Description: Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes. 6 * Version: 2.7. 06 * Version: 2.7. 7 7 * Author: Derek Herman 8 8 * Author URI: http://valendesigns.com … … 85 85 * Current Version number. 86 86 */ 87 define( 'OT_VERSION', '2.7. 0' );87 define( 'OT_VERSION', '2.7.' ); 88 88 89 89 /** -
option-tree/trunk/readme.txt
r2069540 r2088704 3 3 Tags: options, theme options, meta boxes, settings 4 4 Requires at least: 3.8 5 Tested up to: 5. 1.16 Stable tag: 2.7. 05 Tested up to: 5. 6 Stable tag: 2.7. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 127 127 == Changelog == 128 128 129 130 131 132 133 129 134 = 2.7.0 = 130 135 * Require PHP 5.3+
Note: See TracChangeset
for help on using the changeset viewer.