PluginProbe
Advanced Custom Fields: Extended / 0.9.2.4
Advanced Custom Fields: Extended v0.9.2.4
0.9.2.7 0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 All 92 releases
← All changes | includes/admin/tools/module-export.php +9 -12 0.9.2.30.9.2.4 View file →
@@ -64,16 +64,13 @@
64 64 }
65 65
66 66 // vars
67 67 $choices = array();
68 - $items = $this->module->get_raw_items();
69 -
70 - if($items){
71 - foreach($items as $item){
72 -
73 - $choices[ $item['name'] ] = esc_html($item['label']);
74 -
75 - }
68 + $items = $this->module->get_items('db');
69 +
70 + // loop db items
71 + foreach($items as $item){
72 + $choices[ $item['name'] ] = esc_html($item['label']);
76 73 }
77 74
78 75 ?>
79 76
@@ -453,13 +450,13 @@
453 450 $data = array();
454 451
455 452 foreach($keys as $name){
456 453
457 - // get item
458 - $item = $this->module->get_raw_item($name);
454 + // get db item
455 + $db_item = $this->module->get_item($name, 'db');
459 456
460 - if($item){
461 - $data[] = $item;
457 + if($db_item){
458 + $data[] = $db_item;
462 459 }
463 460
464 461 }
465 462