Changeset 1179709
- Timestamp:
- 06/12/2015 03:31:39 PM (11 years ago)
- Location:
- polylang-theme-strings/trunk
- Files:
-
- 2 edited
-
mw-polylang-theme-strings.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
polylang-theme-strings/trunk/mw-polylang-theme-strings.php
r1169899 r1179709 15 15 class MW_Polylang_Theme_Strings 16 16 { 17 private$prefix = 'mw_polylang_strings_';18 private$pll_f = 'pll_register_string';17 static $prefix = 'mw_polylang_strings_'; 18 static $pll_f = 'pll_register_string'; 19 19 private $paths; 20 20 private $db; … … 38 38 public function Uninstall() 39 39 { 40 $this->db->query("DELETE FROM `{$this->db->prefix}options` WHERE `option_name` LIKE '{$this->prefix}%'"); 40 global $wpdb; 41 42 $wpdb->query("DELETE FROM `" . $wpdb->prefix . "options` WHERE `option_name` LIKE '" . self::$prefix . "%'"); 41 43 } 42 44 … … 85 87 ( 86 88 is_admin() && 87 function_exists( $this->pll_f) &&88 $_REQUEST['page'] == 'mlang'&&89 $_REQUEST['tab'] == 'strings'89 function_exists(self::$pll_f) && 90 (isset($_REQUEST['page']) && $_REQUEST['page'] == 'mlang') && 91 (isset($_REQUEST['tab']) && $_REQUEST['tab'] == 'strings') 90 92 ) 91 93 { … … 112 114 } 113 115 114 update_option( $this->prefix . $this->Path_Get('theme_dir_name') . '_data', $data);116 update_option(self::$prefix . $this->Path_Get('theme_dir_name') . '_data', $data); 115 117 } 116 118 } … … 118 120 public function PLL_Strings_Init() 119 121 { 120 if (function_exists( $this->pll_f))122 if (function_exists(self::$pll_f)) 121 123 { 122 $data = get_option( $this->prefix . $this->Path_Get('theme_dir_name') . '_data');124 $data = get_option(self::$prefix . $this->Path_Get('theme_dir_name') . '_data'); 123 125 124 126 if (is_array($data) && count($data)) -
polylang-theme-strings/trunk/readme.txt
r1170843 r1179709 5 5 Requires at least: 3.8 6 6 Tested up to: 4.2 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 9 9 … … 47 47 == Changelog == 48 48 49 = 1.1 (2015-06-12) = 50 51 * Fixed bug when removing the plugin from the admin panel. 52 * Improved code. 53 49 54 = 1.0 (2015-05-29) = 50 55
Note: See TracChangeset
for help on using the changeset viewer.