Version Description
- Fix: Loading localization language files for some installations
Download this release
Release Info
Developer | n7studios |
Plugin | Photo Gallery by Envira – Responsive Image Gallery for WordPress |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- envira-gallery-lite.php +3 -12
- readme.txt +3 -0
envira-gallery-lite.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
6 |
* Author: Thomas Griffin
|
7 |
* Author URI: http://thomasgriffinmedia.com
|
8 |
-
* Version: 1.2.
|
9 |
* Text Domain: envira-gallery
|
10 |
* Domain Path: languages
|
11 |
*
|
@@ -54,7 +54,7 @@ class Envira_Gallery_Lite {
|
|
54 |
*
|
55 |
* @var string
|
56 |
*/
|
57 |
-
public $version = '1.2.
|
58 |
|
59 |
/**
|
60 |
* The name of the plugin.
|
@@ -135,16 +135,7 @@ class Envira_Gallery_Lite {
|
|
135 |
*/
|
136 |
public function load_plugin_textdomain() {
|
137 |
|
138 |
-
|
139 |
-
if ( class_exists( 'Envira_Gallery' ) ) {
|
140 |
-
return;
|
141 |
-
}
|
142 |
-
|
143 |
-
$domain = $this->domain;
|
144 |
-
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
145 |
-
|
146 |
-
load_textdomain( $domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
147 |
-
load_plugin_textdomain( $domain, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
148 |
|
149 |
}
|
150 |
|
5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
6 |
* Author: Thomas Griffin
|
7 |
* Author URI: http://thomasgriffinmedia.com
|
8 |
+
* Version: 1.2.1
|
9 |
* Text Domain: envira-gallery
|
10 |
* Domain Path: languages
|
11 |
*
|
54 |
*
|
55 |
* @var string
|
56 |
*/
|
57 |
+
public $version = '1.2.1';
|
58 |
|
59 |
/**
|
60 |
* The name of the plugin.
|
135 |
*/
|
136 |
public function load_plugin_textdomain() {
|
137 |
|
138 |
+
load_plugin_textdomain( $this->plugin_slug, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
|
140 |
}
|
141 |
|
readme.txt
CHANGED
@@ -57,6 +57,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
= 1.2.0 =
|
61 |
* Added: .POT file for translation / localization support
|
62 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 1.2.1 =
|
61 |
+
* Fix: Loading localization language files for some installations
|
62 |
+
|
63 |
= 1.2.0 =
|
64 |
* Added: .POT file for translation / localization support
|
65 |
|