@@ 349-356 (lines=8) @@ | ||
346 | return $result; |
|
347 | } |
|
348 | ||
349 | private static function get_grouped_option( $group, $name, $default ) { |
|
350 | $options = get_option( self::$grouped_options[ $group ] ); |
|
351 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
|
352 | return $options[ $name ]; |
|
353 | } |
|
354 | ||
355 | return $default; |
|
356 | } |
|
357 | ||
358 | private static function delete_grouped_option( $group, $names ) { |
|
359 | $options = get_option( self::$grouped_options[ $group ], array() ); |
@@ 73-80 (lines=8) @@ | ||
70 | * @param Mixed $default a default value in case the option is not found. |
|
71 | * @return Mixed the option value or default if not found. |
|
72 | */ |
|
73 | protected function get_grouped_option( $group, $name, $default ) { |
|
74 | $options = get_option( $this->grouped_options[ $group ] ); |
|
75 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
|
76 | return $options[ $name ]; |
|
77 | } |
|
78 | ||
79 | return $default; |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * Updates the single given option. Updates jetpack_options or jetpack_$name as appropriate. |