Re:Starting a New WordPress Plugin with Sublime Text
by mmuro on Tuesday May 07, 2013 @11:32AM
(#5668607)
"Update jQuery."
This is about the worst possible thing this tutorial could have suggested.
If you are a WordPress plugin or theme developer, please DO NOT include your own copy of jQuery. There's a reason WordPress ships with its own version in No Conflict mode and why wp_enqueue_script exists.
Re:Starting a New WordPress Plugin with Sublime Text
by csixty4 on Tuesday May 07, 2013 @12:42PM
(#5669093)
And the WordPress.org plugin reviewers are really cracking down on plugins that mess with jQuery, so a plugin that does this isn't likely to get hosted in the main repo.
As mmuro mentioned, including your own copy of jQuery is bad advice. Just ensure that the 3rd parameter of wp_enqueue_script() is array('jquery') if you are worried about the order your scripts are loaded.
Re:Starting a New WordPress Plugin with Sublime Text
by ericcholis on Tuesday May 07, 2013 @11:57AM
(#5668774)
Step 1) Gouge out eyes
Seriously, Wordpress development is a stain on an already dirty PHP community. Glad that there is some semblance of order with the wordpress package via Fetch.
This is about the worst possible thing this tutorial could have suggested.
If you are a WordPress plugin or theme developer, please DO NOT include your own copy of jQuery. There's a reason WordPress ships with its own version in No Conflict mode and why wp_enqueue_script exists.
As mmuro mentioned, including your own copy of jQuery is bad advice. Just ensure that the 3rd parameter of wp_enqueue_script() is array('jquery') if you are worried about the order your scripts are loaded.
You could have said "Fetch: a new ST2 package to download files" etc. Anything would have been better than what was used.
But then, how will they trick people into thinking they're not being advertised to?
Seriously, Wordpress development is a stain on an already dirty PHP community. Glad that there is some semblance of order with the wordpress package via Fetch.