Changeset 1002155
- Timestamp:
- 10/05/2014 08:13:06 PM (11 years ago)
- Location:
- tm-replace-howdy
- Files:
-
- 1 added
- 2 edited
- 5 copied
-
tags/1.4.1 (added)
-
tags/1.4.1/index.php (copied) (copied from tm-replace-howdy/trunk/index.php) (5 diffs)
-
tags/1.4.1/languages (copied) (copied from tm-replace-howdy/trunk/languages)
-
tags/1.4.1/languages/tm-replace-howdy.pot (copied) (copied from tm-replace-howdy/trunk/languages/tm-replace-howdy.pot)
-
tags/1.4.1/options.php (copied) (copied from tm-replace-howdy/trunk/options.php)
-
tags/1.4.1/readme.txt (copied) (copied from tm-replace-howdy/trunk/readme.txt) (3 diffs)
-
trunk/index.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tm-replace-howdy/tags/1.4.1/index.php
r1002147 r1002155 151 151 case 'custom': // We are in a custom mode, get list from DB 152 152 $options = get_option( 'tm_replace_howdy_values' ); 153 if ( is_array( $options ) && is _array( $options[1] ) ) {153 if ( is_array( $options ) && isset( $options[1] ) && is_array( $options[1] ) ) { 154 154 $values = $options[1]; 155 155 } else { … … 199 199 200 200 function options_save_settings() { 201 $redirect = false; 201 202 if ( isset( $_POST['tm_replace_howdy_form'] ) ) { 202 203 // Update settings in DB, we are saving … … 205 206 update_option( 'tm_replace_howdy_mode', esc_attr( $mode ) ); 206 207 } 207 if ( isset( $_POST['tm_rh_list'] ) && is_array( $_POST['tm_rh_list'] )) {208 if ( isset( $_POST['tm_rh_list'] ) ) { 208 209 $list = explode( ';', $_POST['tm_rh_list'] ); 209 210 $tmp = array(); … … 236 237 update_option( 'tm_replace_howdy_all_languages', esc_attr( $replace_all ) ); 237 238 update_option( 'tm_replace_howdy_save', esc_attr( $save_data ) ); 239 $redirect = true; 238 240 } elseif ( isset( $_POST['tm_replace_howdy_form_defaults'] ) ) { 239 241 // Clear settings in DB, we are resetting … … 242 244 delete_option( 'tm_replace_howdy_all_languages' ); 243 245 delete_option( 'tm_replace_howdy_save' ); 246 $redirect = true; 247 } 248 if ( $redirect ) { 249 wp_redirect( admin_url( 'options-general.php?page=tm_replace_howdy' ) ); 250 exit(); 244 251 } 245 252 } -
tm-replace-howdy/tags/1.4.1/readme.txt
r1002148 r1002155 7 7 Requires at least: 3.8 8 8 Tested up to: 4.0 9 Stable tag: 1.4. 09 Stable tag: 1.4.1 10 10 11 11 Banish the "Howdy" greeting from the WordPress admin area with this simple to use plugin! … … 65 65 66 66 == Changelog == 67 = 1.4.1 = 68 * Fixed a settings bug 67 69 = 1.4.0 = 68 70 * Made admin interface translatable. Does NOT apply to lists of phrases. … … 100 102 101 103 == Upgrade Notice == 104 = 1.4.1 = 105 Fixed a settings bug 102 106 = 1.4.0 = 103 107 Made more robust, cleaned up code, and added some features for developers and translators. -
tm-replace-howdy/trunk/index.php
r1002147 r1002155 151 151 case 'custom': // We are in a custom mode, get list from DB 152 152 $options = get_option( 'tm_replace_howdy_values' ); 153 if ( is_array( $options ) && is _array( $options[1] ) ) {153 if ( is_array( $options ) && isset( $options[1] ) && is_array( $options[1] ) ) { 154 154 $values = $options[1]; 155 155 } else { … … 199 199 200 200 function options_save_settings() { 201 $redirect = false; 201 202 if ( isset( $_POST['tm_replace_howdy_form'] ) ) { 202 203 // Update settings in DB, we are saving … … 205 206 update_option( 'tm_replace_howdy_mode', esc_attr( $mode ) ); 206 207 } 207 if ( isset( $_POST['tm_rh_list'] ) && is_array( $_POST['tm_rh_list'] )) {208 if ( isset( $_POST['tm_rh_list'] ) ) { 208 209 $list = explode( ';', $_POST['tm_rh_list'] ); 209 210 $tmp = array(); … … 236 237 update_option( 'tm_replace_howdy_all_languages', esc_attr( $replace_all ) ); 237 238 update_option( 'tm_replace_howdy_save', esc_attr( $save_data ) ); 239 $redirect = true; 238 240 } elseif ( isset( $_POST['tm_replace_howdy_form_defaults'] ) ) { 239 241 // Clear settings in DB, we are resetting … … 242 244 delete_option( 'tm_replace_howdy_all_languages' ); 243 245 delete_option( 'tm_replace_howdy_save' ); 246 $redirect = true; 247 } 248 if ( $redirect ) { 249 wp_redirect( admin_url( 'options-general.php?page=tm_replace_howdy' ) ); 250 exit(); 244 251 } 245 252 } -
tm-replace-howdy/trunk/readme.txt
r1002148 r1002155 7 7 Requires at least: 3.8 8 8 Tested up to: 4.0 9 Stable tag: 1.4. 09 Stable tag: 1.4.1 10 10 11 11 Banish the "Howdy" greeting from the WordPress admin area with this simple to use plugin! … … 65 65 66 66 == Changelog == 67 = 1.4.1 = 68 * Fixed a settings bug 67 69 = 1.4.0 = 68 70 * Made admin interface translatable. Does NOT apply to lists of phrases. … … 100 102 101 103 == Upgrade Notice == 104 = 1.4.1 = 105 Fixed a settings bug 102 106 = 1.4.0 = 103 107 Made more robust, cleaned up code, and added some features for developers and translators.
Note: See TracChangeset
for help on using the changeset viewer.