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.
2012-01-11 03:43:23 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2016-09-27 06:05:53 +00:00
|
|
|
* WordPress.com-specific functions and definitions
|
2012-01-11 03:43:23 +00:00
|
|
|
*
|
2013-11-24 18:24:11 +00:00
|
|
|
* This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
|
|
|
|
*
|
2012-01-11 03:43:23 +00:00
|
|
|
* @package _s
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2013-11-24 18:24:11 +00:00
|
|
|
* Adds support for wp.com-specific theme functions.
|
2012-01-11 03:43:23 +00:00
|
|
|
*
|
2012-02-17 22:34:53 +00:00
|
|
|
* @global array $themecolors
|
2012-01-11 03:43:23 +00:00
|
|
|
*/
|
2013-11-24 18:24:11 +00:00
|
|
|
function _s_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', '_s_wpcom_setup' );
|