WordPress.org

Plugin Directory

Changeset 378418


Ignore:
Timestamp:
04/28/11 15:06:01 (7 years ago)
Author:
johnfjohnf
Message:

Fix post screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • external-videos/trunk/ev-media-gallery.php

    r378408 r378418  
    216216    $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; 
    217217    $q['post_type'] = 'external-videos'; 
    218     $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : 'inherit'; 
     218    //$q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : 'inherit'; This breaks the media attach screen on the post and the videos don't get listed 
    219219    $media_per_page = (int) get_user_option( 'upload_per_page' ); 
    220220    if ( empty( $media_per_page ) || $media_per_page < 1 ) 
Note: See TracChangeset for help on using the changeset viewer.