WordPress.org

Making WordPress.org

Changeset 4109


Ignore:
Timestamp:
09/20/2016 01:32:23 PM (5 years ago)
Author:
ocean90
Message:

Breathe: Remove support for header, background and color customizations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php

    r4104 r4109  
    22namespace WordPressdotorg\Make\Breathe;
    33
     4function after_setup_theme() {
     5    remove_theme_support( 'custom-header' );
     6    remove_theme_support( 'custom-background' );
     7
     8    remove_action( 'customize_register', 'breathe_customize_register' );
     9    remove_action( 'customize_preview_init', 'breathe_customize_preview_js' );
     10    remove_filter( 'wp_head', 'breathe_color_styles' );
     11}
     12add_action( 'after_setup_theme', __NAMESPACE__ . '\after_setup_theme', 11 );
     13
    414function styles() {
    5     wp_dequeue_style('breathe-style');
     15    wp_dequeue_style( 'breathe-style' );
    616    wp_enqueue_style( 'p2-breathe', get_template_directory_uri() . '/style.css' );
    717
Note: See TracChangeset for help on using the changeset viewer.