Making WordPress.org

Changeset 6699


Ignore:
Timestamp:
02/20/2018 06:22:42 PM (9 years ago)
Author:
obenland
Message:

Support: Simplify enqueue call and bump cache

See #2559.

File:
1 edited

Legend:

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

    r6390 r6699  
    2121function wporg_support_scripts() {
    2222
    23         wp_register_style(
    24                 'bb-base',
    25                 '//bbpress.org/wp-content/themes/bb-base/style.css',
    26                 array(),
    27                 '20160919'
    28         );
    29 
    30         wp_register_style(
    31                 'forum-wp4-style',
    32                 get_template_directory_uri() . '/style.css',
    33                 array( 'bb-base' ),
    34                 '20180117'
    35         );
    36 
     23        wp_enqueue_style( 'forum-wp4-style', get_stylesheet_uri(), [], '20180220' );
    3724        wp_style_add_data( 'forum-wp4-style', 'rtl', 'replace' );
    38 
    39         wp_enqueue_style( 'forum-wp4-style' );
    4025
    4126        wp_enqueue_script( 'wporg-support-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151217', true );
Note: See TracChangeset for help on using the changeset viewer.