Making WordPress.org

Ticket #739: 739.patch

File 739.patch, 1.6 KB (added by ocean90, 9 years ago)
  • trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php

     
    1212        ) );
    1313
    1414        register_nav_menu( 'rosetta_main', __( 'Main Menu', 'rosetta' ) );
     15
     16        remove_action( 'wp_head', 'locale_stylesheet' );
    1517}
    1618add_action( 'after_setup_theme', 'rosetta_after_setup_theme' );
    1719
     
    6971        return substr_replace( $string, ' ', strrpos( $string, ' ' ), 1 );
    7072}
    7173add_filter( 'no_orphans', 'rosetta_orphan_control' );
    72 
  • trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/header.php

     
    99        'menu' => wp_nav_menu( array( 'theme_location' => 'rosetta_main', 'container' => false, 'echo' => false, 'menu_id' => 'wporg-header-menu' ) ),
    1010);
    1111
    12 wp_enqueue_style( 'rosetta', get_bloginfo( 'stylesheet_url' ), array(), 16, 'screen' );
     12wp_enqueue_style( 'rosetta', get_stylesheet_uri(), array(), 16, 'screen' );
     13
     14if ( is_rtl() ) {
     15        wp_enqueue_style( 'rosetta-rtl', get_locale_stylesheet_uri(), array( 'rosetta' ), 2, 'screen' );
     16}
     17
    1318if ( is_locale_css() ) {
    1419        wp_enqueue_style( 'rosetta-locale', get_locale_css_url(), array(), 1 );
    1520}