Making WordPress.org


Ignore:
Timestamp:
02/19/2016 08:07:46 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Budgets Dashboard: Show (no title) if the post title is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php

    r2366 r2538  
    136136     */
    137137    public function column_payment( $request ) {
     138        $title          = empty( $request->post_title ) ? '(no title)' : $request->post_title;
    138139        $edit_post_link = add_query_arg( array( 'post' => $request->ID, 'action' => 'edit' ), admin_url( 'post.php' ) );
    139140        $actions = array(
     
    143144        return sprintf( '<a href="%s" class="row-title" target="_blank">%s</a>%s',
    144145            esc_url( $edit_post_link ),
    145             esc_html( $request->post_title ),
     146            esc_html( $title ),
    146147            $this->row_actions( $actions )
    147148        );
Note: See TracChangeset for help on using the changeset viewer.