Plugin Directory

Changeset 2088704

Timestamp:
05/16/2019 12:32:20 AM (5 years ago)
Author:
valendesigns
Message:

Committing 2.7.1 to trunk

Location:
option-tree/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • option-tree/trunk/composer.json

    r2069540 r2088704  
    22  "name": "valendesigns/option-tree",
    33  "description": "Theme Options UI Builder for WordPress.",
     4
    45  "type": "wordpress-plugin",
    56  "homepage": "https://github.com/valendesigns/option-tree",
  • option-tree/trunk/includes/ot-functions-admin.php

    r2069540 r2088704  
    567567                if ( 'post' === $context ) {
    568568                    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();
    572573
    573574                        $tags = apply_filters( 'ot_allowed_html', $tags );
     
    732733                    $input_safe = sanitize_textarea_field( $input );
    733734                } 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                                    }
    750752                                }
    751753                            }
     754
     755
    752756                        }
    753 
    754                         return $result;
    755757                    }
    756 
    757758                    $input_safe = _sanitize_recursive( $input );
    758759                }
  • option-tree/trunk/ot-loader.php

    r2069540 r2088704  
    44 * Plugin URI:  https://github.com/valendesigns/option-tree/
    55 * 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.0
     6 * Version:     2.7.
    77 * Author:      Derek Herman
    88 * Author URI:  http://valendesigns.com
     
    8585             * Current Version number.
    8686             */
    87             define( 'OT_VERSION', '2.7.0' );
     87            define( 'OT_VERSION', '2.7.' );
    8888
    8989            /**
  • option-tree/trunk/readme.txt

    r2069540 r2088704  
    33Tags: options, theme options, meta boxes, settings
    44Requires at least: 3.8
    5 Tested up to: 5.1.1
    6 Stable tag: 2.7.0
     5Tested up to: 5.
     6Stable tag: 2.7.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    127127== Changelog ==
    128128
     129
     130
     131
     132
     133
    129134= 2.7.0 =
    130135* Require PHP 5.3+
Note: See TracChangeset for help on using the changeset viewer.