Plugin Directory

Changeset 1945552


Ignore:
Timestamp:
09/23/2018 12:17:38 PM (8 years ago)
Author:
maxchirkov
Message:

Fixes use of a deprecated function in PHP 7.2

Location:
advanced-text-widget/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-text-widget/trunk/advancedtext.php

    r1742557 r1945552  
    11<?php
    22/*
    3 Plugin Name: Advanced Text Widget PRO
     3Plugin Name: Advanced Text Widget
    44Plugin URI: http://simplerealtytheme.com/plugins/atw-pro/
    55Description: Text widget that has extensive conditional options to display content on pages, posts, specific categories etc. It supports regular HTML as well as PHP code. Conditional visibility can be applied to other widgets of the site as well.
    66Author: Max Chirkov
    7 Version: 2.1.1
     7Version: 2.1.2
    88Author URI: http://simplerealtytheme.com
    99*/
     
    119119
    120120// Tell Dynamic Sidebar about our new widget and its control
    121     add_action('widgets_init', create_function('', 'return register_widget("advanced_text");'));
     121    add_action('widgets_init', 'atw_register_widget');
    122122    add_action('widgets_init', 'advanced_text_do_shortcode');
     123
     124    function atw_register_widget(){
     125        register_widget("advanced_text");
     126    }
    123127
    124128    function atw_admin_scripts(){
  • advanced-text-widget/trunk/options/options.php

    r971860 r1945552  
    190190
    191191
    192     function validate_input($input){       
     192    function validate_input($input){
    193193        foreach($input['condition'] as $k => $v){
    194            
     194
    195195                if(empty($v['name']) && empty($v['code']))
    196196                    unset($input['condition'][$k]);
    197            
     197
    198198        }
    199199        return $input;
  • advanced-text-widget/trunk/readme.txt

    r1742557 r1945552  
    44Tags: text, php, plugin, widget, sidebar, conditions
    55Requires at least: 2.8
    6 Tested up to: 4.8.2
    7 Stable tag: 2.1.1
     6Tested up to: 4.9.8
     7Stable tag: 2.1.2
    88
    99Text widget with raw PHP support and conditional visibility settings. Flexible conditional options with ability to edit and add custom conditions.
     
    5252== Changelog ==
    5353
     54= 2.1.2 =
     55- Fixes use of a deprecated function in PHP 7.2.
     56
    5457= 2.1.1 =
    5558- Fixes a fatal error.
Note: See TracChangeset for help on using the changeset viewer.