Plugin Directory

Changeset 2185113


Ignore:
Timestamp:
11/03/2019 07:24:11 AM (6 years ago)
Author:
iteamweb
Message:

PHP Parse error: syntax error, unexpected ‘?’

Location:
display-categories-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • display-categories-widget/trunk/display_categories_widget.php

    r2123404 r2185113  
    44Description: Display Categories Widget - Easy to display categories as widget on your sidebar, Smart Customizable widget settings on the backend
    55Plugin URI: http://www.iteamweb.com/open-source-softwares/wordpress/wordpress-plugins/display-categories-widget/
    6 Version: 3.0
     6Version: 3.1
    77Author: Suresh Baskaran
    88License: GPL
     
    212212        echo $before_widget;
    213213        $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
    214         $cat_id = $instance['category'] ?? 0;
    215         $dcw_limit = $instance['dcw_limit'] ?? 'Categories';
    216         $dcw_option_name = $instance['dcw_option_name'] ?? '';
    217         $dcw_exclude = $instance['dcw_exclude'] ?? '';
    218         $dcw_depth = $instance['dcw_depth'] ?? 0;
    219         $display_empty_categories = $instance['display_empty_categories'] ?? 0;
    220         $showcount_value = $instance['showcount_value'] ?? 0;
    221         $use_desc_for_title = $instance['use_desc_for_title'] ?? 0;
    222         $sort_order_by = $instance['sort_order_by'] ?? 'name';
    223         $sort_order_as = $instance['sort_order_as'] ?? 'ASC';
    224         $show_format = $instance['show_format'] ?? 0;
    225         $dcw_column = $instance['dcw_column'] ?? 1;
    226                 $dcw_display_parent = $instance['display_parent'] ?? 0;
     214        $cat_id = $instance['category'] ? $instance['category'] : 0;
     215        $dcw_limit = $instance['dcw_limit'] ? $instance['dcw_limit'] : 'Categories';
     216        $dcw_option_name = $instance['dcw_option_name'] ? $instance['dcw_option_name'] : '';
     217        $dcw_exclude = $instance['dcw_exclude'] ? $instance['dcw_exclude'] : '';
     218        $dcw_depth = $instance['dcw_depth'] ? $instance['dcw_depth'] : 0;
     219        $display_empty_categories = $instance['display_empty_categories'] ? $instance['display_empty_categories'] : 0;
     220        $showcount_value = $instance['showcount_value'] ? $instance['showcount_value'] : 0;
     221        $use_desc_for_title = $instance['use_desc_for_title'] ? $instance['use_desc_for_title'] : 0;
     222        $sort_order_by = $instance['sort_order_by'] ? $instance['sort_order_by'] : 'name';
     223        $sort_order_as = $instance['sort_order_as'] ? $instance['sort_order_as'] : 'ASC';
     224        $show_format = $instance['show_format'] ? $instance['show_format'] : 0;
     225        $dcw_column = $instance['dcw_column'] ? $instance['dcw_column'] : 1;
     226        $dcw_display_parent = $instance['display_parent'] ? $instance['display_parent'] : 0;
    227227
    228228        if (!empty($title)) echo $before_title . $title . $after_title;
  • display-categories-widget/trunk/readme.txt

    r2123402 r2185113  
    44Tags: categories, widget, list categories, hide categories, select categories, level, Post categories, Categories display, categories widget, categories drop down
    55Requires at least: 5.0
    6 Tested up to: 5.2.2
    7 Stable tag: 3.0
     6Tested up to: 5.2.4
     7Stable tag: 3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060Check if you have entered the category id's and not the category names.
    6161
     62= Will this plugin work for PHP version 5.6? =
     63
     64Yes, this plugin will work for PHP5.6 and if you face any parse errors , please report in support section forum.
     65
    6266== Screenshots ==
    6367
     
    6771
    6872== Changelog ==
     73
     74= 3.1 =
     75* Fixed warning for php 5.6 (Ternary operator updated) - Fixed: PHP Parse error: syntax error, unexpected ‘?’
    6976
    7077= 3.0 =
Note: See TracChangeset for help on using the changeset viewer.