Changeset 1335406
- Timestamp:
- 01/25/2016 10:18:33 AM (9 years ago)
- Location:
- polylang-theme-strings
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
polylang-theme-strings/trunk/mw-polylang-theme-strings.php
r1310840 r1335406 5 5 Plugin URI: http://modeewine.com/en-polylang-theme-strings 6 6 Description: Automatic scanning of strings translation in the theme and registration of them in Polylang plugin. 7 Version: 2. 1.17 Version: 2.2 8 8 Author: Modeewine 9 9 Author URI: http://modeewine.com … … 46 46 } 47 47 48 p rivatefunction Init()48 public function Init() 49 49 { 50 50 $this->Paths_Init(); 51 $this->Plugin_Hooks_Init(); 52 53 if (self::Is_PLL_Strings_Settings_Page()) 54 { 55 $this->Themes_PLL_Strings_Scan(); 56 } 51 $this->Plugin_Install_Hooks_Init(); 52 53 add_action('init', array($this, 'Plugin_Hooks_Init')); 57 54 } 58 55 … … 72 69 } 73 70 74 private function Plugin_ Hooks_Init()71 private function Plugin_Install_Hooks_Init() 75 72 { 76 73 register_activation_hook($this->Path_Get('plugin_file_index'), array('MW_Polylang_Theme_Strings', 'Install')); 77 74 register_uninstall_hook($this->Path_Get('plugin_file_index'), array('MW_Polylang_Theme_Strings', 'Uninstall')); 78 75 } 76 77 public function Plugin_Hooks_Init() 78 { 79 79 if (!is_admin() && function_exists(self::$pll_f)) 80 80 { 81 add_action('init', array($this, 'Theme_Current_PLL_Strings_Init'));81 $this->Theme_Current_PLL_Strings_Init(); 82 82 } 83 83 else 84 84 if (self::Is_PLL_Strings_Settings_Page()) 85 85 { 86 add_action('init', array($this, 'Themes_PLL_Strings_Init')); 86 $this->Themes_PLL_Strings_Scan(); 87 $this->Themes_PLL_Strings_Init(); 87 88 } 88 89 } -
polylang-theme-strings/trunk/readme.txt
r1310840 r1335406 5 5 Requires at least: 3.8 6 6 Tested up to: 4.4 7 Stable tag: 2. 1.17 Stable tag: 2.2 8 8 License: GPL2 9 9 … … 48 48 == Changelog == 49 49 50 = 2.2 (2016-01-25) = 51 52 * Optimized compatibility with Polylang 1.8. 53 * Improved code. 54 50 55 = 2.1.1 (2015-12-17) = 51 56
Note: See TracChangeset
for help on using the changeset viewer.