Changeset 1492831
- Timestamp:
- 09/08/2016 08:36:34 PM (10 years ago)
- Location:
- thrivehive/trunk
- Files:
-
- 2 edited
-
controllers/posts.php (modified) (4 diffs)
-
css/custom_style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
thrivehive/trunk/controllers/posts.php
r1338431 r1492831 39 39 $_REQUEST['categories'] = $categories; 40 40 41 nocache_headers(); 41 $meta_values = strtolower(str_replace('\\', '', $_REQUEST['meta_values'])); 42 $meta_values = json_decode($meta_values); 43 $_REQUEST['meta_values'] = $meta_values; 44 45 46 nocache_headers(); 42 47 $post = new JSON_API_Post(); 43 48 … … 53 58 { 54 59 update_post_meta($id, 'th_data', $_REQUEST['th_data']); 60 } 61 62 foreach ($meta_values as $key => $value){ 63 update_post_meta($id, $key, $value); 55 64 } 56 65 return array( … … 92 101 } 93 102 103 $meta_values = strtolower(str_replace('\\', '', $_REQUEST['meta_values'])); 104 $meta_values = json_decode($meta_values); 105 $_REQUEST['meta_values'] = $meta_values; 106 94 107 nocache_headers(); 95 108 $post = new JSON_API_Post($post); … … 102 115 { 103 116 update_post_meta($_REQUEST['post_id'], 'th_data', $_REQUEST['th_data']); 117 } 118 foreach ($meta_values as $key => $value){ 119 update_post_meta($id, $key, $value); 104 120 } 105 121 return array( -
thrivehive/trunk/css/custom_style.css
r1371710 r1492831 858 858 /* margin: 12px 0;*/ 859 859 } 860 .widget, .widget_nav_menu .widget-wrap{ 861 text-align: right; 862 } 860 863 861 864
Note: See TracChangeset
for help on using the changeset viewer.