/** * Load the JSON configuration, if present. * * @since 0.1.0 * * @return bool Whether the file was loaded successfully. */ public static function load_json_config() { $working_dir = getcwd(); if (!$working_dir) { return false; } $config = self::load_json_file($working_dir . '/wp-l10n-validator.json'); if (!$config) { return false; } self::$config = array_merge(self::$config, $config); return true; }