core/Datastore/Widget_Datastore.php 1 location
|
@@ 52-56 (lines=5) @@
|
| 49 |
|
*/ |
| 50 |
|
protected function get_storage_array( Field $field, $storage_key_patterns ) { |
| 51 |
|
$storage_array = array(); |
| 52 |
|
foreach ( $this->storage as $storage_key => $value ) { |
| 53 |
|
if ( $this->key_toolset->storage_key_matches_any_pattern( $storage_key, $storage_key_patterns ) ) { |
| 54 |
|
$storage_array[] = (object) array( |
| 55 |
|
'key' => $storage_key, |
| 56 |
|
'value' => $value, |
| 57 |
|
); |
| 58 |
|
} |
| 59 |
|
} |
core/Service/Legacy_Storage_Service.php 1 location
|
@@ 428-435 (lines=8) @@
|
| 425 |
|
|
| 426 |
|
$storage_array = $this->get_storage_array_for_datastore( $datastore ); |
| 427 |
|
$matched_data = array(); |
| 428 |
|
foreach ( $storage_array as $key => $value ) { |
| 429 |
|
if ( $this->key_toolset->storage_key_matches_any_pattern( $key, $storage_key_patterns ) ) { |
| 430 |
|
$matched_data[] = (object) array( |
| 431 |
|
'key' => $key, |
| 432 |
|
'value' => $value, |
| 433 |
|
); |
| 434 |
|
} |
| 435 |
|
} |
| 436 |
|
return $matched_data; |
| 437 |
|
} |
| 438 |
|
|