Making WordPress.org

Ticket #1659: 1659.patch

File 1659.patch, 1011 bytes (added by juanfra, 9 years ago)

There was a code trying to apply a patch to core that was resolved versions ago. By deleting that should work just fine. Also, the session time is a default custom field now, so it'll be always be present.

  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

     
    181181                // Order by session time
    182182                if ( 'edit-wcb_session' == $current_screen->id && $query->get( 'orderby' ) == '_wcpt_session_time' ) {
    183183
    184                         // Voodoo because of http://core.trac.wordpress.org/ticket/23268
    185                         $query->set( 'meta_query', array(
    186                                 'relation' => 'OR',
    187                                 array(
    188                                         'key'     => '_wcpt_session_time',
    189                                         'value'   => '',
    190                                         'compare' => 'EXISTS',
    191                                 ),
    192                                 array(
    193                                         'key'     => '_wcpt_session_time',
    194                                         'value'   => '',
    195                                         'compare' => 'NOT EXISTS',
    196                                 ),
    197                         ) );
    198184                        $query->set( 'meta_key', '_wcpt_session_time' );
    199185                        $query->set( 'orderby', 'meta_value_num' );
    200186                }