Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

updated for PHP warnings (ln 465) and missing js #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ctacrob
Copy link

@ctacrob ctacrob commented Sep 25, 2013

Added the $post variable to wp_is_post_revision and wp_is_post_autosave to suppress PHP warnings about lack of parameters.

Replaced js/js.js with js/js.dev.js as there was no other file in the /js directory.

@gbinal
Copy link
Contributor

gbinal commented Sep 25, 2013

I'm a bit out of my league here. @benbalter, look good?

Gray

@@ -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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ideal approach here would be to minify the javascript, if possible, using something like uglify js.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants