Skip to content

Commit

Permalink
Merge pull request #36 from codyrobert/cb-fix-quick-edit
Browse files Browse the repository at this point in the history
Fix missing quick edit links
  • Loading branch information
chrislarrycarl authored Sep 22, 2019
2 parents 4e9ad47 + e690e2f commit 791ee44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/class-utmdotcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public function __construct() {
add_filter( 'wp_insert_post_data', [ &$this, 'insert_post_data' ], 10, 2 );
add_filter( 'gettext', [ &$this, 'change_publish_button' ], 10, 2 );

$is_post_list = ( 'edit.php' === $pagenow );
$is_post_list = ( 'edit.php' === $pagenow );
$is_utmdc_post = ( 'utmdclink' === filter_input( INPUT_GET, 'post_type', FILTER_SANITIZE_STRING ) );

if ( ( is_admin() && $is_post_list ) || $this->is_test() ) {
if ( ( is_admin() && $is_post_list && $is_utmdc_post ) || $this->is_test() ) {
add_action( 'restrict_manage_posts', [ &$this, 'filter_ui' ], 5, 1 );
add_action( 'pre_get_posts', [ &$this, 'apply_filters' ], 5, 1 );
add_filter( 'manage_' . self::POST_TYPE . '_posts_columns', [ &$this, 'post_list_header' ], 10, 1 );
Expand Down

0 comments on commit 791ee44

Please sign in to comment.