[wp-trac] [WordPress Trac] #35262: New function: `has_title`

WordPress Trac noreply at wordpress.org
Wed Dec 30 07:12:25 UTC 2015


#35262: New function: `has_title`
-------------------------------+-----------------------------
 Reporter:  sebastian.pisula   |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Function to check that post has title. For example:

 {{{#!php
 <?php if(has_title()) : ?>
 <h1><?php the_title();?>
 <?php endif;?>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35262>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list