All Meta Tags - Version 4.21

Version Description

  • The code block that enqueue the CodeMirror library files is moved to a separate function '_load_scripts_codemirror' within the 'enqueue.php' file.
  • Enqueue of the CodeMirror addons is moved to the beginning of the queue, before enqueuing the CodeMirror mods.
  • All translation files are updated.
Download this release

Release Info

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

Code changes from version 4.20 to 4.21

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: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
- * Version: 4.20
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
5
  * Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
  * Author: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
+ * Version: 4.21
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
inc/php/enqueue.php CHANGED
@@ -5,6 +5,44 @@
5
  */
6
  defined( 'ABSPATH' ) or die( "Restricted access!" );
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  /**
9
  * Load scripts and style sheet for settings page
10
  */
@@ -31,23 +69,8 @@ function spacexchimp_p004_load_scripts_admin( $hook ) {
31
  // Font Awesome library
32
  wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', array(), $version, 'screen' );
33
 
34
- // CodeMirror library
35
- wp_enqueue_style( $prefix . '-codemirror-css', $url . 'inc/lib/codemirror/lib/codemirror.css', array(), $version, 'all' );
36
- wp_enqueue_script( $prefix . '-codemirror-js', $url . 'inc/lib/codemirror/lib/codemirror.js', array(), $version, false );
37
- wp_enqueue_script( $prefix . '-codemirror-settings-js', $url . 'inc/js/codemirror-settings.js', array(), $version, true );
38
- $modes = array( 'xml' );
39
- foreach ( $modes as $mode ) {
40
- wp_enqueue_script( $prefix . '-codemirror-mode-' . $mode . '-js', $url . 'inc/lib/codemirror/mode/' . $mode . '/' . $mode . '.js', array(), $version, true );
41
- }
42
- $addons = array(
43
- 'display' => array( 'autorefresh', 'placeholder' ),
44
- 'selection' => array( 'active-line' )
45
- );
46
- foreach ( $addons as $addons_group_name => $addons_group ) {
47
- foreach ( $addons_group as $addon ) {
48
- wp_enqueue_script( $prefix . '-codemirror-addon-' . $addon . '-js', $url . 'inc/lib/codemirror/addon/' . $addons_group_name . '/' . $addon . '.js', array(), $version, false );
49
- }
50
- }
51
 
52
  // Style sheet
53
  wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css', array(), $version, 'all' );
5
  */
6
  defined( 'ABSPATH' ) or die( "Restricted access!" );
7
 
8
+ /**
9
+ * Callback to enqueue the CodeMirror library
10
+ */
11
+ function spacexchimp_p004_load_scripts_codemirror() {
12
+
13
+ // Put value of constants to variables for easier access
14
+ $prefix = SPACEXCHIMP_P004_PREFIX;
15
+ $url = SPACEXCHIMP_P004_URL;
16
+ $version = SPACEXCHIMP_P004_VERSION;
17
+
18
+ // Enqueue main files of the CodeMirror library
19
+ wp_enqueue_style( $prefix . '-codemirror-css', $url . 'inc/lib/codemirror/lib/codemirror.css', array(), $version, 'all' );
20
+ wp_enqueue_script( $prefix . '-codemirror-js', $url . 'inc/lib/codemirror/lib/codemirror.js', array(), $version, false );
21
+
22
+ // Enqueue settings file
23
+ wp_enqueue_script( $prefix . '-codemirror-settings-js', $url . 'inc/js/codemirror-settings.js', array(), $version, true );
24
+
25
+ // Enqueue addons
26
+ $addons = array(
27
+ 'display' => array( 'autorefresh', 'placeholder' ),
28
+ 'selection' => array( 'active-line' )
29
+ );
30
+ foreach ( $addons as $addons_group_name => $addons_group ) {
31
+ foreach ( $addons_group as $addon ) {
32
+ wp_enqueue_script( $prefix . '-codemirror-addon-' . $addon . '-js', $url . 'inc/lib/codemirror/addon/' . $addons_group_name . '/' . $addon . '.js', array(), $version, false );
33
+ }
34
+ }
35
+
36
+ // Enqueue modes
37
+ $modes = array(
38
+ 'xml'
39
+ );
40
+ foreach ( $modes as $mode ) {
41
+ wp_enqueue_script( $prefix . '-codemirror-mode-' . $mode . '-js', $url . 'inc/lib/codemirror/mode/' . $mode . '/' . $mode . '.js', array(), $version, true );
42
+ }
43
+
44
+ }
45
+
46
  /**
47
  * Load scripts and style sheet for settings page
48
  */
69
  // Font Awesome library
70
  wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', array(), $version, 'screen' );
71
 
72
+ // Call the function that enqueue the CodeMirror library
73
+ spacexchimp_p004_load_scripts_codemirror();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
  // Style sheet
76
  wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css', array(), $version, 'all' );
languages/all-meta-tags-de_DE.mo CHANGED
Binary file
languages/all-meta-tags-de_DE.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2018-07-01 18:08+0300\n"
7
- "PO-Revision-Date: 2018-07-01 18:08+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: German\n"
10
  "Language: de_DE\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2018-07-12 01:17+0300\n"
7
+ "PO-Revision-Date: 2018-07-12 01:17+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: German\n"
10
  "Language: de_DE\n"
languages/all-meta-tags-es_ES.mo CHANGED
Binary file
languages/all-meta-tags-es_ES.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2018-07-01 18:08+0300\n"
7
- "PO-Revision-Date: 2018-07-01 18:09+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish\n"
10
  "Language: es_ES\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2018-07-12 01:17+0300\n"
7
+ "PO-Revision-Date: 2018-07-12 01:17+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish\n"
10
  "Language: es_ES\n"
languages/all-meta-tags-es_MX.mo CHANGED
Binary file
languages/all-meta-tags-es_MX.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2018-07-01 18:09+0300\n"
7
- "PO-Revision-Date: 2018-07-01 18:09+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish (Mexico)\n"
10
  "Language: es_MX\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2018-07-12 01:17+0300\n"
7
+ "PO-Revision-Date: 2018-07-12 01:17+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish (Mexico)\n"
10
  "Language: es_MX\n"
languages/all-meta-tags-it_IT.mo CHANGED
Binary file
languages/all-meta-tags-it_IT.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2018-07-01 18:09+0300\n"
7
- "PO-Revision-Date: 2018-07-01 18:09+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Italian\n"
10
  "Language: it_IT\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2018-07-12 01:17+0300\n"
7
+ "PO-Revision-Date: 2018-07-12 01:17+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Italian\n"
10
  "Language: it_IT\n"
languages/all-meta-tags-ru_RU.mo CHANGED
Binary file
languages/all-meta-tags-ru_RU.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2018-07-01 18:09+0300\n"
7
- "PO-Revision-Date: 2018-07-01 18:09+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Russian\n"
10
  "Language: ru_RU\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2018-07-12 01:17+0300\n"
7
+ "PO-Revision-Date: 2018-07-12 01:17+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Russian\n"
10
  "Language: ru_RU\n"
languages/all-meta-tags.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2018-07-01 18:09+0300\n"
7
  "PO-Revision-Date: 2015-10-28 13:57+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2018-07-12 01:17+0300\n"
7
  "PO-Revision-Date: 2015-10-28 13:57+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: meta, tag, tags, custom, simple, plugin, twitter, facebook, google, google
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 4.9
7
- Stable tag: 4.20
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -207,6 +207,11 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
207
 
208
  == Changelog ==
209
 
 
 
 
 
 
210
  = 4.20 =
211
  * The CodeMirror library is added to the plugin.
212
  * On the plugin settings page, textareas are replaced with the CodeMirror editor.
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 4.9
7
+ Stable tag: 4.21
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
207
 
208
  == Changelog ==
209
 
210
+ = 4.21 =
211
+ * The code block that enqueue the CodeMirror library files is moved to a separate function '_load_scripts_codemirror' within the 'enqueue.php' file.
212
+ * Enqueue of the CodeMirror addons is moved to the beginning of the queue, before enqueuing the CodeMirror mods.
213
+ * All translation files are updated.
214
+
215
  = 4.20 =
216
  * The CodeMirror library is added to the plugin.
217
  * On the plugin settings page, textareas are replaced with the CodeMirror editor.