Make WordPress Core

Changeset 25461


Ignore:
Timestamp:
09/16/2013 08:50:11 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Check if the post type supports title. see #24423.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r25459 r25461  
    470470?>
    471471
    472 <?php if ( '' === $post->post_title ) : ?>
     472<?php if ( post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
    473473<script type="text/javascript">
    474474try{document.post.title.focus();}catch(e){}
Note: See TracChangeset for help on using the changeset viewer.