Permalink
Browse files

Fix notices in the Pages widget.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@1025 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent ee4b1ca commit 43c36ff6b4a69e68ea4bfeeb633f844a36bbd5db greenshady committed May 4, 2012
Showing with 6 additions and 4 deletions.
  1. +4 −2 classes/widget-pages.php
  2. +2 −2 hybrid.php
View
6 classes/widget-pages.php
@@ -59,10 +59,12 @@ function widget( $sidebar, $instance ) {
$args = $instance;
/* wp_list_pages() won't accept array of excluded pages, so we need to pass a string. */
- $args['exclude'] = is_array( $args['exclude'] ) ? join( ',', $args['exclude'] ) : $args['exclude'];
+ if ( !empty( $args['exclude'] ) && is_array( $args['exclude'] ) )
+ $args['exclude'] = join( ',', $args['exclude'] );
/* wp_list_pages() won't accept array of authors, so we need to pass a string. */
- $args['authors'] = is_array( $args['authors'] ) ? join( ',', $args['authors'] ) : $args['authors'];
+ if ( !empty( $args['authors'] ) && is_array( $args['authors'] ) )
+ $args['authors'] = join( ',', $args['authors'] );
/* Set the $title_li and $echo to false. */
$args['title_li'] = false;
View
4 hybrid.php
@@ -24,7 +24,7 @@
* to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package HybridCore
- * @version 1.3.0
+ * @version 1.3.1
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2008 - 2012, Justin Tadlock
* @link http://themehybrid.com/hybrid-core
@@ -89,7 +89,7 @@ function __construct() {
function constants() {
/* Sets the framework version number. */
- define( 'HYBRID_VERSION', '1.3.0' );
+ define( 'HYBRID_VERSION', '1.3.1' );
/* Sets the path to the parent theme directory. */
define( 'THEME_DIR', get_template_directory() );

0 comments on commit 43c36ff

Please sign in to comment.