WordPress.org

Making WordPress.org


Ignore:
Timestamp:
05/20/2013 04:25:21 PM (8 years ago)
Author:
nacin
Message:

WP.org P2 child theme: Enqueue CSS on our own so we can bump CSS versions.

File:
1 edited

Legend:

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

    r8 r9  
    11<?php
    22
    3 add_action( 'after_setup_theme', 'wporg_p2_after_setup_theme' );
     3add_action( 'after_setup_theme', 'wporg_p2_after_setup_theme', 11 );
    44function wporg_p2_after_setup_theme() {
    55    register_nav_menu( 'wporg_header_subsite_nav', 'WP.org Header Sub-Navigation' );
    66}
     7
     8add_action( 'wp_enqueue_scripts', 'wporg_p2_enqueue_scripts', 11 );
     9function wporg_p2_enqueue_scripts() {
     10    wp_deregister_style( 'p2' );
     11    wp_register_style( 'p2', get_template_directory_uri() . '/style.css' );
     12    wp_enqueue_style( 'wporg-p2', get_stylesheet_uri(), array( 'p2' ), '2013-05-20' );
     13}
Note: See TracChangeset for help on using the changeset viewer.