Category Posts Widget plugin updated for WordPress 3.4.2+ [DOWNLOAD]
1 Attachment(s)
Category Posts Widget Update:
A lot of popular WordPress plugins have not been properly updated for several years now, and contain deprecated code. While the plugin may seem "fine" when its activated in wp-admin, deprecated code often means that it's not functioning properly. This tends to only be noticed when you enable debug mode in the wp-config.php file. Category Posts Widget gives the following errors when activated: Code:
Notice: Undefined index: sort_by in X:\...\wp-content\plugins\category-posts\cat-posts.php on line 46 Where to Download ? You can either download our ready-to-use files...
What Was Changed ? ... or you can make the edits yourself. Line 46 of cat-posts.php contains incomplete code: Code:
if ( in_array($instance['sort_by'], $valid_sort_orders) ) { Code:
// if ( in_array($instance['sort_by'], $valid_sort_orders) ) { Code:
if( $instance["title_link"] ) Code:
// if( $instance["title_link"] ) Code:
<?php if ( $instance['date'] ) : ?> Code:
<?php if (isset($instance['date']) && $instance['date']) : ?> Code:
<?php if ( $instance['excerpt'] ) : ?> Code:
<?php if (isset($instance['excerpt']) && $instance['excerpt']) : ?> Code:
<?php if ( $instance['comment_num'] ) : ?> Code:
<?php if (isset($instance['comment_num']) && $instance['comment_num']) : ?> ________
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.