From a1ec8ed84b47ebb76699b01ec74f2519d91ecda2 Mon Sep 17 00:00:00 2001 From: Tom McFarlin Date: Mon, 5 Mar 2012 22:33:04 -0500 Subject: [PATCH] Updating javaScript, bringing the plugin's source code up to WordPress' coding conventions, and removing constants. --- README.txt | 6 +++--- js/admin.js | 4 +++- js/display.js | 4 +++- plugin.php | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.txt b/README.txt index 63eba98..f8304b8 100644 --- a/README.txt +++ b/README.txt @@ -1,9 +1,9 @@ -=== Plugin Name === +=== Widget Name === Contributors: username1, username2 (this should be a list of wordpress.org userid's) Donate link: http://example.com/ Tags: comments, spam -Requires at least: 2.0.2 -Tested up to: 2.1 +Requires at least: 3.3.1 +Tested up to: 3.3.1 Stable tag: 4.3 Here is a short description of the plugin. This should be no more than 150 characters. No markup here. diff --git a/js/admin.js b/js/admin.js index 10933a4..296c707 100644 --- a/js/admin.js +++ b/js/admin.js @@ -1,3 +1,5 @@ (function($) { - // Place your administration-specific code here + $(function() { + // Place your administration-specific JavaScript here + }); })(jQuery); \ No newline at end of file diff --git a/js/display.js b/js/display.js index 7344232..5609ac4 100644 --- a/js/display.js +++ b/js/display.js @@ -1,3 +1,5 @@ (function($) { - // Place your public facing JavaScript here + $(function() { + // Place your public-facing JavaScript here + }); })(jQuery); \ No newline at end of file diff --git a/plugin.php b/plugin.php index c7cb78c..f87f1a2 100644 --- a/plugin.php +++ b/plugin.php @@ -9,7 +9,7 @@ Author URI: TODO Author Email: TODO License: - Copyright 2011 TODO (email@domain.com) + Copyright 2012 TODO (email@domain.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as