Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 8 months ago

#2788 closed defect (bug) (fixed)

Strange behaviour when adding custom field to page

Reported by: halsnalle's profile halsnalle Owned by: pishmishy's profile pishmishy
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: page editing custom fields has-patch tested
Focuses: Cc:

Description

When adding a custom field to a Page, clicking "Add custom field" simply saves the page and loads the Write Post page. However, when I edit the saved page and add additional custom fields, clicking "Add custom field" works like "Save and continue editing, ie. I stay on the Edit Page page for the Page being edited.

Attachments (2)

2788.diff (2.5 KB) - added by davidhouse 18 years ago.
2788.2.diff (994 bytes) - added by pishmishy 17 years ago.
Corrects typo addemeta -> addmeta

Download all attachments as: .zip

Change History (11)

#1 @davidhouse
18 years ago

"When adding a custom field to a Page, clicking "Add custom field" simply saves the page and loads the Write Post page." -- It redirects to the Write Page page for me, guess that was a typo.

Anyway, I think it should behave as a 'Save and continue editing' all the time.

#2 @davidhouse
18 years ago

  • Owner changed from anonymous to davidhouse
  • Status changed from new to assigned

Almost done.

@davidhouse
18 years ago

#3 @davidhouse
18 years ago

  • Keywords bg|has-patch added

Try that patch.

#4 @Nazgul
17 years ago

  • Keywords has-patch added; bg|has-patch removed
  • Milestone set to 2.3

#5 @westi
17 years ago

  • Keywords needs-patch added; has-patch removed
  • Owner changed from davidhouse to westi
  • Status changed from assigned to new

I can confirm that this behaviour still exists.

The current patch is stale though -> has-patch=>needs-patch

#6 @foolswisdom
17 years ago

  • Milestone changed from 2.3 to 2.4

#7 @pishmishy
17 years ago

  • Owner changed from westi to pishmishy
  • Status changed from new to assigned

Problem still exists (sort of) in the new interface.
Adding a new custom field either with an existing page, or a page under creation, redirects me to the Write Page page. Should be changed to act as "Save and continue editting"

@pishmishy
17 years ago

Corrects typo addemeta -> addmeta

#8 @pishmishy
17 years ago

  • Keywords has-patch tested added; needs-patch removed

Problem in new interface is caused by a typo. Attached patch fixes it.

#9 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6816]) Fix add custom field redirects. Props pishmishy. fixes #2788

Note: See TracTickets for help on using tickets.