From ae3492352aa2fc6223d28a5be20fc100b8d863d3 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 19 Oct 2013 01:28:53 +0100 Subject: [PATCH] 2.3 --- extended-cpts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extended-cpts.php b/extended-cpts.php index e94f329..3a13ffa 100644 --- a/extended-cpts.php +++ b/extended-cpts.php @@ -2,7 +2,7 @@ /* Plugin Name: Extended CPTs Description: Extended custom post types. -Version: 2.3-beta1 +Version: 2.3 Author: John Blackbourn Author URI: http://johnblackbourn.com License: GPL v2 or later @@ -470,7 +470,7 @@ public function __construct( Extended_CPT $cpt, array $args = null ) { # 'Right Now' dashboard widget: if ( $this->args['right_now'] ) - add_action( 'right_now_content_table_end', array( $this, 'right_now' ), $this->args['menu_position'] ); + add_action( 'right_now_content_table_end', array( $this, 'right_now' ), $this->cpt->args['menu_position'] ); # Nav menus screen item: if ( $this->args['archive_in_nav_menus'] and $this->cpt->args['show_in_nav_menus'] and $this->cpt->args['has_archive'] ) @@ -862,7 +862,7 @@ public function filter_posts_by_post_meta( array $vars ) { ); } else if ( isset( $filter['meta_exists'] ) and isset( $vars[$filter_key] ) and !empty( $vars[$filter_key] ) ) { $args = array( - 'key' => stripslashes( $vars[$filter_key] ), + 'key' => stripslashes( $vars[$filter_key] ), ); if ( isset( $filter['meta_value'] ) ) { $args['value'] = $filter['meta_value'];