summaryrefslogtreecommitdiff
path: root/inc/wpcom.php
diff options
context:
space:
mode:
authorMax2017-05-18 14:03:27 +0200
committerMax2017-05-18 14:03:27 +0200
commitf597e2fe949a1e18eb778b9a5bd102de88570555 (patch)
tree7e42e6f91dd3e764cd2cf0c4f61f48501c2ed98f /inc/wpcom.php
downloaddocs.maxmail.xyz-master.tar.gz
Initial commit.HEADmaster
Diffstat (limited to 'inc/wpcom.php')
-rw-r--r--inc/wpcom.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/inc/wpcom.php b/inc/wpcom.php
new file mode 100644
index 0000000..8400caa
--- /dev/null
+++ b/inc/wpcom.php
@@ -0,0 +1,29 @@
+<?php
+/**
+ * WordPress.com-specific functions and definitions.
+ *
+ * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
+ *
+ * @package understrap
+ */
+
+/**
+ * Adds support for wp.com-specific theme functions.
+ *
+ * @global array $themecolors
+ */
+function understrap_wpcom_setup() {
+ global $themecolors;
+
+ // Set theme colors for third party services.
+ if ( ! isset( $themecolors ) ) {
+ $themecolors = array(
+ 'bg' => '',
+ 'border' => '',
+ 'text' => '',
+ 'link' => '',
+ 'url' => '',
+ );
+ }
+}
+add_action( 'after_setup_theme', 'understrap_wpcom_setup' );