Changeset 1438921
- Timestamp:
- 06/18/2016 03:17:22 AM (10 years ago)
- Location:
- rating-writing/trunk
- Files:
-
- 2 edited
-
includes/meta-boxes.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rating-writing/trunk/includes/meta-boxes.php
r1339725 r1438921 32 32 33 33 $titledata = sanitize_text_field( $_POST[ '_t_t_key' ] ); 34 if( "" === get_post_meta( $post_id, _t_t_key) ) {34 if( "" === get_post_meta( $post_id, '_t_t_key' ) ) { 35 35 add_post_meta( $post_id, _t_t_key, $titledata, true ); 36 36 } 37 elseif( $titledata != get_post_meta( $post_id, _t_t_key) ) {38 update_post_meta( $post_id, _t_t_key, $titledata );37 elseif( $titledata != get_post_meta( $post_id, '_t_t_key' ) ) { 38 update_post_meta( $post_id, '_t_t_key', $titledata ); 39 39 } 40 40 elseif( "" === $titledata ) { 41 delete_post_meta( $post_id, _t_t_key);41 delete_post_meta( $post_id, '_t_t_key' ); 42 42 } 43 43 … … 45 45 while( $i < 10 ) { 46 46 if( $i === 0 ) { 47 $boxdata_01 = ''; 47 48 $boxdata = $boxdata_01; 48 49 $save_key = '_t_key_01'; 49 50 } elseif( $i === 1 ) { 51 $boxdata_02 = ''; 50 52 $boxdata = $boxdata_02; 51 53 $save_key = '_t_key_02'; 52 54 } elseif( $i === 2 ) { 55 $boxdata_03 = ''; 53 56 $boxdata = $boxdata_03; 54 57 $save_key = '_t_key_03'; 55 58 } elseif( $i === 3 ) { 59 $boxdata_04 = ''; 56 60 $boxdata = $boxdata_04; 57 61 $save_key = '_t_key_04'; 58 62 } elseif( $i === 4 ) { 63 $boxdata_05 = ''; 59 64 $boxdata = $boxdata_05; 60 65 $save_key = '_t_key_05'; 61 66 } elseif( $i === 5 ) { 67 $boxdata_06 = ''; 62 68 $boxdata = $boxdata_06; 63 69 $save_key = '_key_01'; 64 70 } elseif( $i === 6 ) { 71 $boxdata_07 = ''; 65 72 $boxdata = $boxdata_07; 66 73 $save_key = '_key_02'; 67 74 } elseif( $i === 7 ) { 75 $boxdata_08 = ''; 68 76 $boxdata = $boxdata_08; 69 77 $save_key = '_key_03'; 70 78 } elseif( $i === 8 ) { 79 $boxdata_09 = ''; 71 80 $boxdata = $boxdata_09; 72 81 $save_key = '_key_04'; 73 82 } elseif( $i === 9 ) { 83 $boxdata_10 = ''; 74 84 $boxdata = $boxdata_10; 75 85 $save_key = '_key_05'; 76 86 } 77 $boxdata = sanitize_text_field( $_POST[ $save_key ] ); 87 if( isset( $_POST[ $save_key ] ) ) { 88 $boxdata = sanitize_text_field( $_POST[ $save_key ] ); 89 } 78 90 if( "" === get_post_meta( $post_id, $save_key ) ) { 79 91 add_post_meta( $post_id, $save_key, $boxdata, true ); -
rating-writing/trunk/readme.txt
r1339725 r1438921 5 5 Requires at least: 4.4 6 6 Tested up to: 4.4 7 Stable tag: 1.2. 37 Stable tag: 1.2.4 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 43 43 44 44 == Changelog == 45 46 18 Jun 2016 47 ----------- 48 = V1.2.4 = 49 * fix includes/meta-boxes.php. 45 50 46 51 31 Jan 2016
Note: See TracChangeset
for help on using the changeset viewer.