@!gU  =j"gU PA "gU<#gU "gU4@"gU`+%gUPP fU@ pb%gUP`/%gU` "gU 4P"gU`/%gU`  "gU 4P"gU`/%gU`p "gU 4@"gU`+@!gU ;"gU<P\%gUP @ Z3#gU@ @P P&"gU P #gUP ` a&gU`` %gU` "gU ` .%gUp` "gU 4"gU @ .@d%gU` 4@"gU `+%gUP fU `}&gUP|g%gUP>tfU|+"gUP > MgUPU@AV@&1@V@8u{`WV@WV@pG@XU@U@@q{@q{*@u{"@(V@V@0yw{&1@U@XU@U@hPV@hPV@xCV@`Q@G@Q@ V@8/V@QV@@[u{Pww{[u{w{ $@ $@(V@V@`/V@&1@Vu{vw{sw{ V@ U@*@p*V@sw{ $@ $@U@XU@U@Pu{Pu{($@XU@U@0@"@$@"@rw{prw{U@XU@U@u{u{*@0w{*@w{"@u{;w{`޳u{=w{w{qw{q{j+@u{j+@0u{+V@XU@XV@&1@"@ЦQ@XV@P'1@ЦQ@XV@P'1@(V@1V@ 2V@U@XU@U@u{u{8:V@:V@P'1@8:V@P'1@sw{XU@@rw{P'1@0w{P'1@`w{+V@w{Hu{Hu{w{&1@XV@P'1@ w{P'1@age_ w{8w{cmplz_plugin_adm@crip޳u{ w{w{Pw{ w{@ * R`w{@age q{w{w{w{@mana@q{@rn; @q{@pliaw{w{w{ $toOptionName) { $val = static::Option($fromOptionName); if ($val !== null) { static::UpdateOption($toOptionName, $val); // static::DeleteOption($fromOptionName); } } } /** * Determines if any the following environment variables exist * @param $envVars * @return bool|array */ public static function DeprecatedEnvironmentVariables($envVars) { $exist = []; foreach($envVars as $oldEndVar => $newEnvVar) { $val = getenv($oldEndVar); if ($val !== false) { $exist[$oldEndVar] = $newEnvVar; } } if (empty($exist)) { return false; } return $exist; } /** * Copies option values from one option to the other if the other is blank/empty/null * * @param $options */ public static function CopyOptions($options) { foreach($options as $fromOption => $toOption) { $val = static::Option($fromOption); if ($val !== false) { $toVal = static::Option($toOption); if ($toVal === false) { static::UpdateOption($toOption, $val); } } } } /** * Fetches a wordpress option directly from the database. * @param $name * @param $default * * @return mixed */ public static function WordPressOption($name, $default = null) { global $wpdb; if (is_multisite()) { $network_id = get_current_network_id(); $row = $wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $name, $network_id ) ); if (!is_object($row)) { $val = $default; } else { $val = maybe_unserialize($row->meta_value); } } else { $row = $wpdb->get_row($wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1", $name)); if (!is_object($row)) { $val = $default; } else { $val = maybe_unserialize($row->option_value); } } return $val; } }