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 )