WordPress.org

Ready to get started?Download WordPress

Forums

Dashboard: Pending Review
Author Names? (3 posts)

  1. SheerHeartAttack
    Member
    Posted 3 years ago #

    The plugin used to show author names of pending posts on the dashboard, but doesn't anymore. I've tried messing with the code but unfortunately I'm not knowledgeable enough to figure it out. Is there something I can add in to restore this feature?

    http://wordpress.org/extend/plugins/dashboard-pending-review/

  2. Ov3rfly
    Member
    Posted 2 years ago #

    Replace this

    $item .= "<abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $pending) . "'>"
    . get_the_time( get_option( 'date_format' ), $pending ) . '</abbr></h4>';

    with this

    $item .= "<abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $pending) . "'>"
    . get_the_author_meta('display_name', $pending->post_author) . ', '
    . get_the_time( get_option( 'date_format' ), $pending ) . '</abbr></h4>';

    at line 99 in version 2.0.0

    For other valid meta-fields besides display_name see here.

  3. SheerHeartAttack
    Member
    Posted 2 years ago #

    Perfect, thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic