wpcom.php 909 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * WordPress.com-specific functions and definitions.
  4. *
  5. * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
  6. *
  7. * @package Elegant_Business
  8. */
  9. /**
  10. * Adds support for wp.com-specific theme functions.
  11. *
  12. * @global array $themecolors
  13. */
  14. function elegant_business_wpcom_setup() {
  15. global $themecolors;
  16. // Set theme colors for third party services.
  17. /*
  18. * These colors match the parent theme’s blue default
  19. *
  20. * To introduce a non-blue color as the default, we’d
  21. * need to set the Custom Colors customizer option on
  22. * theme activation and also change the default hex
  23. * color here.
  24. */
  25. if ( ! isset( $themecolors ) ) {
  26. $themecolors = array(
  27. 'bg' => 'ffffff',
  28. 'border' => '767676',
  29. 'text' => '111111',
  30. 'link' => '0073aa',
  31. 'url' => '0073aa',
  32. );
  33. }
  34. }
  35. add_action( 'after_setup_theme', 'elegant_business_wpcom_setup' );