Skip to content

Commit

Permalink
Merge pull request #45 from newfold-labs/update/use-container-to-get-…
Browse files Browse the repository at this point in the history
…brand-value

Update/use container to get brand value
  • Loading branch information
circlecube committed Oct 26, 2023
2 parents 672ba89 + 982dc52 commit 51f3eb8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions includes/HiiveConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,18 +263,19 @@ public static function get_auth_token() {
*/
public function get_core_data() {
global $wpdb, $wp_version;
$container = container();

$data = array(
'brand' => sanitize_title( get_option( 'mm_brand', 'false' ) ),
'brand' => sanitize_title( $container->plugin()->brand ),
'cache_level' => intval( get_option( 'newfold_cache_level', 2 ) ),
'cloudflare' => get_option( 'newfold_cloudflare_enabled', false ),
'cloudflare' => get_option( 'newfold_cloudflare_enabled', false ),
'data' => NFD_DATA_MODULE_VERSION,
'email' => get_option( 'admin_email' ),
'hostname' => gethostname(),
'mysql' => $wpdb->db_version(),
'origin' => container()->plugin()->get( 'id', 'error' ),
'origin' => $container->plugin()->get( 'id', 'error' ),
'php' => phpversion(),
'plugin' => container()->plugin()->get( 'version', '0' ),
'plugin' => $container->plugin()->get( 'version', '0' ),
'url' => get_site_url(),
'username' => get_current_user(),
'wp' => $wp_version,
Expand Down

0 comments on commit 51f3eb8

Please sign in to comment.