core/Datastore/Meta_Datastore.php 1 location
|
@@ 68-72 (lines=5) @@
|
| 65 |
|
public function load_values( $field ) { |
| 66 |
|
global $wpdb; |
| 67 |
|
|
| 68 |
|
if ( is_object( $field ) && is_subclass_of( $field, 'Carbon_Fields\\Field\\Field' ) ) { |
| 69 |
|
$meta_key = $this->get_field_name( $field ); |
| 70 |
|
} else { |
| 71 |
|
$meta_key = $field; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
return $wpdb->get_results( ' |
| 75 |
|
SELECT meta_key AS field_key, meta_value AS field_value FROM ' . $this->get_table_name() . ' |
core/Datastore/Theme_Options_Datastore.php 1 location
|
@@ 61-65 (lines=5) @@
|
| 58 |
|
public function load_values( $field ) { |
| 59 |
|
global $wpdb; |
| 60 |
|
|
| 61 |
|
if ( is_object( $field ) && is_subclass_of( $field, 'Carbon_Fields\\Field\\Field' ) ) { |
| 62 |
|
$meta_key = $field->get_name(); |
| 63 |
|
} else { |
| 64 |
|
$meta_key = $field; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
return $wpdb->get_results( ' |
| 68 |
|
SELECT option_name AS field_key, option_value AS field_value FROM ' . $wpdb->options . ' |