Changeset 3253331
- Timestamp:
- 03/10/2025 01:08:50 PM (13 months ago)
- Location:
- woorewards/trunk
- Files:
-
- 5 edited
-
assets/lws-adminpanel/include/admin.php (modified) (1 diff)
-
assets/lws-adminpanel/include/tools/conveniences.php (modified) (2 diffs)
-
assets/lws-adminpanel/lws-adminpanel.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
woorewards.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woorewards/trunk/assets/lws-adminpanel/include/admin.php
r3227529 r3253331 37 37 38 38 \add_action('after_setup_theme', function() { 39 \load_plugin_textdomain('lws-adminpanel', FALSE, \ basename(dirname(LWS_ADMIN_PANEL_FILE)) . '/languages/');39 \load_plugin_textdomain('lws-adminpanel', FALSE, \LWS\Adminpanel\Tools\Conveniences::getPluginSubpath(LWS_ADMIN_PANEL_FILE, '/languages/')); 40 40 }); 41 41 -
woorewards/trunk/assets/lws-adminpanel/include/tools/conveniences.php
r3253191 r3253331 497 497 $bal = $default; 498 498 if( isset($descr['tag']) ){ 499 $bal = \is_array($descr['tag']) ? $self::array2tag($descr['tag']) : $descr['tag'];499 $bal = \is_array($descr['tag']) ? self::array2tag($descr['tag']) : $descr['tag']; 500 500 unset($descr['tag']); 501 501 } … … 687 687 } 688 688 } 689 690 /** 691 * @param $file string a file in the root directory of the plugin as reference. 692 * @param $clue string a directory name that should exists in full path if plugin is embeded into someone else. 693 * @param $path string appended to the returned path. 694 * @return string the path from wp plugin dir to the base directory of the plugin (including plugin directory). 695 */ 696 public static function getPluginSubpath(string $file, string $path=''): string 697 { 698 $dir = \basename(dirname($file)); 699 $sub = \substr($file, \strlen(WP_PLUGIN_DIR)); 700 $pos = \strpos($sub, $dir); 701 if (false !== $pos) { 702 $dir = \substr($sub, 0, $pos + \strlen($dir)); 703 } 704 return \rtrim($dir, '/\\') . '/' . \ltrim($path, '/\\'); 705 } 689 706 } -
woorewards/trunk/assets/lws-adminpanel/lws-adminpanel.php
r3253191 r3253331 6 6 * Author: Long Watch Studio 7 7 * Author URI: https://longwatchstudio.com 8 * Version: 5.5.1 88 * Version: 5.5.19 9 9 * Text Domain: lws-adminpanel 10 10 * … … 58 58 59 59 add_filter('lws_adminpanel_versions', function($versions){ 60 $versions['5.5.1 8'] = __FILE__;60 $versions['5.5.19'] = __FILE__; 61 61 return $versions; 62 62 }); -
woorewards/trunk/readme.txt
r3253191 r3253331 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.0.0 7 Stable tag: 5.4. 97 Stable tag: 5.4.10 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 110 110 == Changelog == 111 111 112 = 5.4.10 = 113 * Fix - language loading path 114 112 115 = 5.4.9 = 113 116 * Tag - WooCommerce 9.7 -
woorewards/trunk/woorewards.php
r3253191 r3253331 7 7 * Author: Long Watch Studio 8 8 * Author URI: https://longwatchstudio.com 9 * Version: 5.4. 99 * Version: 5.4.10 10 10 * License: Copyright LongWatchStudio 2022 11 11 * Text Domain: woorewards-lite … … 111 111 private function defineConstants() 112 112 { 113 define('LWS_WOOREWARDS_VERSION', '5.4. 9');113 define('LWS_WOOREWARDS_VERSION', '5.4.10'); 114 114 define('LWS_WOOREWARDS_FILE', __FILE__); 115 115 define('LWS_WOOREWARDS_DOMAIN', 'woorewards-lite'); … … 149 149 public function addPluginVersion($url) 150 150 { 151 return '5.4. 9';151 return '5.4.10'; 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.