WordPress.org

Make WordPress Core

Changeset 43664


Ignore:
Timestamp:
10/02/2018 03:52:15 PM (11 months ago)
Author:
pento
Message:

Posts: Remove the slug from Quick Edit for CPTs with publicly_queryable disabled.

In the full edit screen, CPTs that have disabled the publicly_queryable option will hide the slug field, as it doesn't need to be edited. This change brings the Quick Edit view into line with that behaviour.

Props bhargavmehta, krutidugade.
Fixes #43278.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r43571 r43664  
    14591459            </label>
    14601460
     1461        <?php if ( $post_type_object->publicly_queryable ) : // publicly_queryable check ?>
     1462
    14611463            <label>
    14621464                <span class="title"><?php _e( 'Slug' ); ?></span>
     
    14641466            </label>
    14651467
    1466     <?php
     1468            <?php
     1469    endif; // publicly_queryable check
    14671470    endif; // $bulk
    14681471    endif; // post_type_supports title
Note: See TracChangeset for help on using the changeset viewer.