Making WordPress.org

Changeset 16


Ignore:
Timestamp:
05/29/2013 03:14:38 PM (11 years ago)
Author:
nacin
Message:

Handbook plugin: Add "Created by" column to the glossary edit.php list, which can be helpful for identifying uncaught spam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/glossary.php

    r10 r16  
    1313        add_action( 'wporg_email_changes_for_post_types', array( __CLASS__, 'wporg_email_changes_for_post_types' ) );
    1414        add_action( 'wporg_handbook_glossary', array( __CLASS__, 'page_content' ) );
     15        add_action( 'manage_glossary_posts_columns', array( __CLASS__, 'manage_glossary_posts_columns' ) );
    1516    }
    1617
     
    6465    }
    6566
     67    static function manage_glossary_posts_columns( $columns ) {
     68        $columns['author'] = __( 'Created by' );
     69        return $columns;
     70    }
     71
    6672    static function post_type_link( $link, $post ) {
    6773        if ( $post->post_type !== 'glossary' )
Note: See TracChangeset for help on using the changeset viewer.