Changeset 404168
- Timestamp:
- 07/03/2011 08:44:14 PM (15 years ago)
- Location:
- hyphenator
- Files:
-
- 4 edited
-
tags/3.3.0/options.php (modified) (1 diff)
-
tags/3.3.0/plugin.php (modified) (1 diff)
-
trunk/options.php (modified) (1 diff)
-
trunk/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hyphenator/tags/3.3.0/options.php
r402275 r404168 57 57 case '3.3.0': // option 'en' -> 'en-us' 58 58 $array = get_option('hyphenator_languages'); 59 if ( ($key = array_search("en", $array)) !== false) {59 if ( is_array($array) && (($key = array_search('en', $array)) !== false) ) { 60 60 unset($array[$key]); 61 61 if (!in_array('en-us', $array)) { -
hyphenator/tags/3.3.0/plugin.php
r402286 r404168 38 38 39 39 function hyphenator_admin() { 40 add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 10, 'hyphenator/options.php'); // under "options"40 add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 'manage_options', 'hyphenator/options.php'); // under "options" 41 41 } 42 42 -
hyphenator/trunk/options.php
r402275 r404168 57 57 case '3.3.0': // option 'en' -> 'en-us' 58 58 $array = get_option('hyphenator_languages'); 59 if ( ($key = array_search("en", $array)) !== false) {59 if ( is_array($array) && (($key = array_search('en', $array)) !== false) ) { 60 60 unset($array[$key]); 61 61 if (!in_array('en-us', $array)) { -
hyphenator/trunk/plugin.php
r402286 r404168 38 38 39 39 function hyphenator_admin() { 40 add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 10, 'hyphenator/options.php'); // under "options"40 add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 'manage_options', 'hyphenator/options.php'); // under "options" 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.