[wp-trac] [WordPress Trac] #24294: empty post title generates 404 error

WordPress Trac noreply at wordpress.org
Thu May 9 09:13:42 UTC 2013


#24294: empty post title generates 404 error
--------------------------+-----------------------------
 Reporter:  marcopanichi  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  3.5.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 How to generate the error:

 1) Settings > Permalink > set Article name
 2) new post
 3) leave the title empty > write something in the body
 4) Publish (a numeric permalink is set because the title is empty)
 5) fill in the title > set a category X > Update
 6) go to the website > go to category X
 7) click on the post title

 Expected:
 - I see the article

 Real result:
 - I see 404 page

 Notes:
 My category.php code is taken from Twenty Twelve template, so the title is
 rendered by the_permalink() function:

 {{{
 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf(
 __( 'Permalink to %s', 'fawola' ), the_title_attribute( 'echo=0' ) ) );
 ?>" rel="bookmark"><?php the_title(); ?></a>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24294>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list