Changeset 2707165
- Timestamp:
- 04/08/2022 07:00:03 PM (4 years ago)
- Location:
- music-sheet-viewer/trunk
- Files:
-
- 2 edited
-
music-sheet-viewer.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
music-sheet-viewer/trunk/music-sheet-viewer.php
r2706634 r2707165 8 8 * License: GPL3 9 9 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 * Version: 4.0 10 * Version: 4.0.2 11 11 12 12 Copyright Etienne Frejaville 2018, 2019, 2020, 2021, 2022 … … 37 37 class MusicSheetViewerPlugin 38 38 { 39 const MSV_VERSION = '4.0 ';39 const MSV_VERSION = '4.0.2'; 40 40 const VRV_VERSION = '3.9.0'; 41 41 … … 116 116 public function __construct() 117 117 { 118 if (get_option(MSV_INSTR) === false) 119 { // Workaround as there is no plugin activation at upgrade time 120 add_option(MSV_INSTR, MSV_INSTR_DFLT); 121 add_option(MSV_MXL_UNZIP_METH, MSV_MXL_UNZIP_METH_DFLT); 122 } 123 118 124 // Register activation/deactivation hooks prior to any other thing otherwise they are not processed correctly 119 125 register_activation_hook(__FILE__, array($this, 'activate')); … … 234 240 //Used to create the options in database (wp_options table) with their default value so that get_option always returns the default value if unset the first time 235 241 //If option already exist, will not override the value 242 if (get_option(MSV_INSTR) === false) 243 { // Workaround as there is no plugin activation at upgrade time 244 add_option(MSV_INSTR, MSV_INSTR_DFLT); 245 add_option(MSV_MXL_UNZIP_METH, MSV_MXL_UNZIP_METH_DFLT); 246 } 247 // should have been only: 248 /* 236 249 add_option(MSV_INSTR, MSV_INSTR_DFLT); 237 250 add_option(MSV_MXL_UNZIP_METH, MSV_MXL_UNZIP_METH_DFLT); 251 */ 238 252 } 239 253 … … 903 917 public function __construct() 904 918 { 919 if (get_option(MSV_INSTR) === false) 920 { // Workaround as there is no plugin activation at upgrade time 921 add_option(MSV_INSTR, MSV_INSTR_DFLT); 922 add_option(MSV_MXL_UNZIP_METH, MSV_MXL_UNZIP_METH_DFLT); 923 } 924 905 925 //init instruments combo 906 926 foreach ($this->options as $i => $value) -
music-sheet-viewer/trunk/readme.txt
r2706634 r2707165 84 84 == Changelog == 85 85 86 = 4.0.2 = 87 * Fix issue making that scores won't play unless plugin is deactivated then activated (after upgrade). BE CAUTIOUS, PLEASE APPLY THAT FIX !!!! 88 86 89 = 4.0 = 87 90 * Dedicated « Music Sheet Viewer » Settings panel for administrators
Note: See TracChangeset
for help on using the changeset viewer.