All Meta Tags - Version 3.1

Version Description

  • Added prefixes to the stylesheet and script names when using wp_enqueue_style() and wp_enqueue_script().
  • Added constant for storing the plugin version number.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 All Meta Tags
Version 3.1
Comparing to
See all releases

Code changes from version 3.0 to 3.1

Files changed (2) hide show
  1. all-meta-tags.php +10 -8
  2. readme.txt +4 -1
all-meta-tags.php CHANGED
@@ -5,7 +5,7 @@
5
* Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
* Author: Arthur Gareginyan
7
* Author URI: http://www.arthurgareginyan.com
8
- * Version: 3.0
9
* License: GPL3
10
* Text Domain: all-meta-tags
11
* Domain Path: /languages/
@@ -29,6 +29,7 @@
29
*
30
*/
31
32
/**
33
* Prevent Direct Access
34
*
@@ -37,14 +38,15 @@
37
defined('ABSPATH') or die("Restricted access!");
38
39
/**
40
- * Define constants
41
*
42
- * @since 2.0
43
*/
44
defined('ALLMT_DIR') or define('ALLMT_DIR', dirname(plugin_basename(__FILE__)));
45
defined('ALLMT_BASE') or define('ALLMT_BASE', plugin_basename(__FILE__));
46
defined('ALLMT_URL') or define('ALLMT_URL', plugin_dir_url(__FILE__));
47
defined('ALLMT_PATH') or define('ALLMT_PATH', plugin_dir_path(__FILE__));
48
49
/**
50
* Register text domain
@@ -93,7 +95,7 @@ require_once( ALLMT_PATH . 'inc/php/settings_page.php' );
93
/**
94
* Load scripts and style sheet for settings page
95
*
96
- * @since 3.0
97
*/
98
function allmetatags_load_scripts($hook) {
99
@@ -103,13 +105,13 @@ function allmetatags_load_scripts($hook) {
103
}
104
105
// Style sheet
106
- wp_enqueue_style( 'admin-css', ALLMT_URL . 'inc/css/admin.css' );
107
108
// JavaScript
109
- wp_enqueue_script( 'admin-js', ALLMT_URL . 'inc/js/admin.js', array(), false, true );
110
111
}
112
- add_action('admin_enqueue_scripts', 'allmetatags_load_scripts');
113
114
/**
115
* Register settings
@@ -312,7 +314,7 @@ function allmetatags_add_metadata_head() {
312
PHP_EOL,
313
PHP_EOL;
314
}
315
- add_action('wp_head', 'allmetatags_add_metadata_head', 0);
316
317
/**
318
* Delete options on uninstall
5
* Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
* Author: Arthur Gareginyan
7
* Author URI: http://www.arthurgareginyan.com
8
+ * Version: 3.1
9
* License: GPL3
10
* Text Domain: all-meta-tags
11
* Domain Path: /languages/
29
*
30
*/
31
32
+
33
/**
34
* Prevent Direct Access
35
*
38
defined('ABSPATH') or die("Restricted access!");
39
40
/**
41
+ * Define global constants
42
*
43
+ * @since 3.1
44
*/
45
defined('ALLMT_DIR') or define('ALLMT_DIR', dirname(plugin_basename(__FILE__)));
46
defined('ALLMT_BASE') or define('ALLMT_BASE', plugin_basename(__FILE__));
47
defined('ALLMT_URL') or define('ALLMT_URL', plugin_dir_url(__FILE__));
48
defined('ALLMT_PATH') or define('ALLMT_PATH', plugin_dir_path(__FILE__));
49
+ defined('ALLMT_VERSION') or define('ALLMT_VERSION', '3.1');
50
51
/**
52
* Register text domain
95
/**
96
* Load scripts and style sheet for settings page
97
*
98
+ * @since 3.1
99
*/
100
function allmetatags_load_scripts($hook) {
101
105
}
106
107
// Style sheet
108
+ wp_enqueue_style( 'allmetatags-admin-css', ALLMT_URL . 'inc/css/admin.css' );
109
110
// JavaScript
111
+ wp_enqueue_script( 'allmetatags-admin-js', ALLMT_URL . 'inc/js/admin.js', array(), false, true );
112
113
}
114
+ add_action( 'admin_enqueue_scripts', 'allmetatags_load_scripts' );
115
116
/**
117
* Register settings
314
PHP_EOL,
315
PHP_EOL;
316
}
317
+ add_action( 'wp_head', 'allmetatags_add_metadata_head', 0 );
318
319
/**
320
* Delete options on uninstall
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: meta, tag,tags, custom, simple, plugin, twitter, facebook, g+, google, goo
4
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
Requires at least: 3.9
6
Tested up to: 4.6
7
- Stable tag: 3.0
8
License: GPL3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
@@ -155,6 +155,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
155
* [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/all-meta-tags)
156
157
== Changelog ==
158
= 3.0 =
159
* The structure of files changed.
160
* Style sheet of settings page improved and better commented.
4
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
Requires at least: 3.9
6
Tested up to: 4.6
7
+ Stable tag: 3.1
8
License: GPL3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
155
* [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/all-meta-tags)
156
157
== Changelog ==
158
+ = 3.1 =
159
+ * Added prefixes to the stylesheet and script names when using wp_enqueue_style() and wp_enqueue_script().
160
+ * Added constant for storing the plugin version number.
161
= 3.0 =
162
* The structure of files changed.
163
* Style sheet of settings page improved and better commented.