Making WordPress.org


Ignore:
Timestamp:
06/18/2015 08:42:09 PM (10 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Add support for a blog.

  • Add post-specific template.
  • Add nav menu to house 'Blog' link.
  • Enable general, non-"User Contributed Notes" commenting.
  • Handle post comments distinctly from User Contributed Notes.
  • Comment styling and display scripting.

Fixes #872.
Props atimmer.

File:
1 edited

Legend:

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

    r1529 r1675  
    8383
    8484function init() {
     85
     86    register_nav_menus();
    8587
    8688    add_action( 'after_switch_theme', __NAMESPACE__ . '\\add_roles' );
     
    222224}
    223225
     226function register_nav_menus() {
     227
     228    \register_nav_menus( array(
     229        'devhub-menu' => __( 'Developer Resources Menu', 'wporg' ),
     230    ) );
     231}
     232
    224233function method_permalink( $link, $post ) {
    225234    if ( $post->post_type !== 'wp-parser-method' )
Note: See TracChangeset for help on using the changeset viewer.