Make WordPress Core

Changeset 43728


Ignore:
Timestamp:
10/15/2018 05:34:48 AM (8 years 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.

Merges [43664] to the 5.0 branch.

Props bhargavmehta, krutidugade.
Fixes #43278.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-admin/includes/class-wp-posts-list-table.php

    r41770 r43728  
    14141414                        </label>
    14151415
     1416                <?php if ( $post_type_object->publicly_queryable ) : // publicly_queryable check ?>
     1417
    14161418                        <label>
    14171419                                <span class="title"><?php _e( 'Slug' ); ?></span>
     
    14191421                        </label>
    14201422
    1421         <?php endif; // $bulk
    1422         endif; // post_type_supports title ?>
     1423                        <?php
     1424        endif; // publicly_queryable check
     1425        endif; // $bulk
     1426        endif; // post_type_supports title
     1427                        ?>
    14231428
    14241429        <?php if ( !$bulk ) : ?>
Note: See TracChangeset for help on using the changeset viewer.