Making WordPress.org


Ignore:
Timestamp:
12/19/2014 09:57:26 PM (11 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Reintroduce Explanations, with editorial flow.

  • Add explanations as an associated post type
  • Add metabox to create, unpublish, and link to edit explanation for a parsed post type
  • Add template tags: get_explanation() and get_explanation_field()
  • Re-enable display of Explanations on the frontend

props DrewAPicture.
fixes #786.

File:
1 edited

Legend:

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

    r1045 r1057  
    4545 */
    4646require __DIR__ . '/inc/user-content-voting.php';
     47
     48/**
     49 * Explanations for functions. hooks, classes, and methods.
     50 */
     51require( __DIR__ . '/inc/explanations.php' );
    4752
    4853/**
     
    8085    add_action( 'pre_get_posts', __NAMESPACE__ . '\\pre_get_posts' );
    8186    add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\theme_scripts_styles' );
     87
    8288    add_filter( 'post_type_link', __NAMESPACE__ . '\\method_permalink', 10, 2 );
    8389    add_filter( 'term_link', __NAMESPACE__ . '\\taxonomy_permalink', 10, 3 );
    8490    add_filter( 'the_posts', __NAMESPACE__ . '\\rerun_empty_exact_search', 10, 2 );
     91
    8592    add_theme_support( 'automatic-feed-links' );
    8693    add_theme_support( 'post-thumbnails' );
Note: See TracChangeset for help on using the changeset viewer.