Plugin Directory


Ignore:
Timestamp:
04/28/2020 02:28:16 PM (5 years ago)
Author:
tschutter
Message:

trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codepress-admin-columns/trunk/classes/ListScreen/Post.php

    r2246221r2293580 
    2222     */
    2323    public function set_manage_value_callback() {
    24         add_action( "manage_" . $this->get_post_type() . "_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
     24        add_action( "manage_" . $this->get_post_type() . "_posts_custom_column", [ $this, 'manage_value' ], 100, 2 );
    2525    }
    2626
    โ€ฆโ€ฆ 
    3131        require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
    3232
    33         return new WP_Posts_List_Table( array( 'screen' => $this->get_screen_id() ) );
     33        return new WP_Posts_List_Table( [ 'screen' => $this->get_screen_id() ] );
    3434    }
    3535
    โ€ฆโ€ฆ 
    3838     */
    3939    public function get_screen_link() {
    40         return add_query_arg( array( 'post_type' => $this->get_post_type() ), parent::get_screen_link() );
     40        return add_query_arg( [ 'post_type' => $this->get_post_type() ], parent::get_screen_link() );
    4141    }
    4242
Note: See TracChangeset for help on using the changeset viewer.