This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
2014-12-10 11:36:38 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* WordPress.com-specific functions and definitions.
|
|
|
|
*
|
|
|
|
* This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
|
|
|
|
*
|
2015-09-15 14:53:38 +00:00
|
|
|
* @package understrap
|
2014-12-10 11:36:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds support for wp.com-specific theme functions.
|
|
|
|
*
|
|
|
|
* @global array $themecolors
|
|
|
|
*/
|
2016-11-01 19:36:43 +00:00
|
|
|
if ( ! function_exists ( 'understrap_wpcom_setup' ) ) {
|
|
|
|
function understrap_wpcom_setup() {
|
|
|
|
global $themecolors;
|
2014-12-10 11:36:38 +00:00
|
|
|
|
2016-11-01 19:36:43 +00:00
|
|
|
// Set theme colors for third party services.
|
|
|
|
if ( ! isset( $themecolors ) ) {
|
|
|
|
$themecolors = array(
|
|
|
|
'bg' => '',
|
|
|
|
'border' => '',
|
|
|
|
'text' => '',
|
|
|
|
'link' => '',
|
|
|
|
'url' => '',
|
|
|
|
);
|
|
|
|
}
|
2014-12-10 11:36:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
add_action( 'after_setup_theme', 'understrap_wpcom_setup' );
|