From 15851d9addea62141d47b0f79d52dd6432762016 Mon Sep 17 00:00:00 2001 From: ctacrob Date: Wed, 25 Sep 2013 14:34:52 -0400 Subject: [PATCH] updated for PHP warnings (ln 465) and missing js --- kickstart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kickstart.php b/kickstart.php index 14b0c19..310929d 100644 --- a/kickstart.php +++ b/kickstart.php @@ -340,7 +340,7 @@ function enqueue_js() { global $post; - $js = ( WP_DEBUG ) ? 'js/js.dev.js' : 'js/js.js'; + $js = ( WP_DEBUG ) ? 'js/js.dev.js' : 'js/js.dev.js'; wp_enqueue_script( 'kickstart', plugins_url( $js, __FILE__ ), array( 'jquery' ), $this->version, true ); $l10n = array( @@ -462,7 +462,7 @@ function request_filter( $request ) { */ function calculate_score_on_save( $post ) { - if ( wp_is_post_revision() || wp_is_post_autosave() ) + if ( wp_is_post_revision($post) || wp_is_post_autosave($post) ) return; if ( get_post_type( $post ) != $this->cpt )