2012-01-11 03:43:23 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2013-11-07 19:41:41 +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
|
2013-11-24 18:24:11 +00:00
|
|
|
* @return void
|
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' );
|