[wp-trac] Re: [WordPress Trac] #3700: Adding a custom field to an unsaved Page before publishing causes weirdness

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 28 03:54:24 GMT 2007


#3700: Adding a custom field to an unsaved Page before publishing causes weirdness
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.1.1    
Component:  Administration  |      Version:           
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Old description:

> As reported on my blog by "Kira":
>

> ----
>  1. I start a new page and give it a title of “Forum” without the quotes,
> leaving the page content blank;
>  1. I add a links_to custom field with a value of
>http://www.kalunite.net/forum/” without the quotes;
>  1. Click “Publish”;
> The newly created page is not listed among the Pages; instead, it is
> saved as a post draft by WordPress. Furthermore, the title is “Draft
> created on January 27, 2007 at 10:51 am” instead of “Forum”.
> ----
>
> More generically:
>
>  1. Click "Write > Page"
>  1. Move quickly for the next few steps
>  1. Add a title (optional: content)
>  1. Add a custom field key/value pair
>  1. Click "Publish"
>
> What happens is that adding the custom field creates the Page as a POST
> draft, with a "Draft created on DATE at TIME" title.  You have to move
> quickly because autosave appears to rectify this.  clicking Publish does
> nothing, and your page seems to disappear (it has become a page draft).
>
> Bit of an edge case, but still a valid bug.

New description:

 As reported on my blog by "Kira":


 ----
  1. I start a new page and give it a title of “Forum” without the quotes,
 leaving the page content blank;
  1. I add a links_to custom field with a value of
 “http://www.kalunite.net/forum/” without the quotes;
  1. Click “Publish”;
 The newly created page is not listed among the Pages; instead, it is saved
 as a post draft by WordPress. Furthermore, the title is “Draft created on
 January 27, 2007 at 10:51 am” instead of “Forum”.
 ----

 More generically:

  1. Click "Write > Page"
  1. Move quickly for the next few steps
  1. Add a title (optional: content)
  1. Add a custom field key/value pair (click "Add Custom Field" after
 typing it in)
  1. Click "Publish"

 What happens is that adding the custom field creates the Page as a POST
 draft, with a "Draft created on DATE at TIME" title.  You have to move
 quickly because autosave appears to rectify this.  clicking Publish does
 nothing, and your page seems to disappear (it has become a page draft).

 Bit of an edge case, but still a valid bug.

Comment (by markjaquith):

 Note: you must click "Add Custom Field" after filling in the custom field
 info

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3700#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list