EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
115 stars 17 forks source link

try to add the code #332

Closed atnaples closed 3 years ago

atnaples commented 3 years ago
$query = $db->query("SELECT value FROM `" . DB_PREFIX . "setting` WHERE `key` = 'config_timezone'");
if ($query->num_rows) {
    date_default_timezone_set($query->row['value']);
}

.... what I get

$query = $db->query("SELECT value FROM " . DB_PREFIX . "setting WHERE key = 'config_timezone'"); if ($query->num_rows) { date_default_timezone_set($query->row['value']); }

AndiDittrich commented 3 years ago

which editing mode you're using ?

atnaples commented 3 years ago

Sorry, code PHP

On Mon, Jun 7, 2021, 10:46 AM Andi Dittrich @.***> wrote:

which editing mode you're using ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EnlighterJS/Plugin.WordPress/issues/332#issuecomment-855999651, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMV2NS7QMNIWFO27MNTFZDTRTLS5ANCNFSM46HN2ZFQ .

AndiDittrich commented 3 years ago

which wordpress editing mode you're using ?