crowdfavorite / wp-post-formats

An admin interface and structured post meta for WordPress post formats.
363 stars 78 forks source link

Only run cfpf_format_auto_title_post() if the post title does not alread... #41

Closed jaredkc closed 10 years ago

jaredkc commented 11 years ago

...y exist. This keeps the_title() from being overwritten.

I recently used this plugin for an existing blog and converted some old posts to quote post format. It was then decided to keep the_title() in place as it was before. All the posts that were converted with this plugin required editing to set the_title() back to what it was before.

With this change existing posts will not have the_title() overwritten. New posts with have the_title() set.

alexkingorg commented 11 years ago

Should that if check be:

if ( empty($post->post_title) ) {

?

jaredkc commented 11 years ago

Um, yep. That looks better.