Skip to content

Commit

Permalink
* fix: Deprecated: Required parameter follows optional parameter in f…
Browse files Browse the repository at this point in the history
…ramework/helpers/class-fw-wp-option.php
  • Loading branch information
nemo committed Jan 17, 2022
1 parent dd0a0be commit 904d3a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/helpers/class-fw-wp-option.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function get($option_name, $specific_multi_key = null, $default_va
_doing_it_wrong(__FUNCTION__, '$get_original_value parameter was removed', 'Unyson 2.5.8');
}

$value = get_option($option_name, null);
$value = get_option($option_name = '', null);

if (empty($specific_multi_key) && $specific_multi_key !== '0') {
return is_null($value) ? fw_call( $default_value ) : $value;
Expand All @@ -36,7 +36,7 @@ public static function get($option_name, $specific_multi_key = null, $default_va
* @param string|null $specific_multi_key
* @param array|string|int|bool $set_value
*/
public static function set($option_name, $specific_multi_key = null, $set_value)
public static function set($option_name = '', $specific_multi_key = null, $set_value = '')
{
if ($specific_multi_key === null) { // Replace entire option
update_option($option_name, $set_value, false);
Expand Down

0 comments on commit 904d3a1

Please sign in to comment.