Plugin Directory

Changeset 1193157


Ignore:
Timestamp:
07/06/2015 09:18:37 AM (11 years ago)
Author:
codepress
Message:

order column fix

Location:
codepress-admin-columns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codepress-admin-columns/tags/2.4.5/classes/column/post/order.php

    r1190667 r1193157  
    2525     */
    2626    public function apply_conditional() {
    27         return is_post_type_hierarchical( $this->storage_model->key );
     27        return is_post_type_hierarchical( $this->storage_model->post_type ) || post_type_supports( $this->storage_model->post_type, 'page-attributes' );
    2828    }
    2929
  • codepress-admin-columns/trunk/classes/column/post/order.php

    r1189483 r1193157  
    2525     */
    2626    public function apply_conditional() {
    27         return is_post_type_hierarchical( $this->storage_model->key );
     27        return is_post_type_hierarchical( $this->storage_model->post_type ) || post_type_supports( $this->storage_model->post_type, 'page-attributes' );
    2828    }
    2929
Note: See TracChangeset for help on using the changeset viewer.