Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#11933 closed enhancement (fixed)

Add filter/action to change form on profile page to enctype="multipart-form/data"

Reported by: pampfelimetten's profile pampfelimetten Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.1
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

As already discused three years ago(#3890), it would be great to change the enctype to multipart to allow easier integration of file upload at the backend. There are some plugins which change it on the fly with javascript, but I think it would be a lot cleaner to just have a filter/action for it.

Also see discussion here: #10518

As wp moves on to a fully featured cms, it should support an easy way to add additional files associated with users.

Attachments (1)

11933.diff (2.3 KB) - added by sivel 15 years ago.
Adds action to add/edit user and to edit post pages.

Download all attachments as: .zip

Change History (6)

#1 @sivel
15 years ago

  • Keywords has-patch dev-feedback added; multipart form profile upload files removed

Patch adds do_action to form tag of user_new.php edit_user.php and edit-form-advanced.php.

I have seen numerous requests to do this for the post edit form on IRC so figured I'd throw it in here too.

@sivel
15 years ago

Adds action to add/edit user and to edit post pages.

#2 @nacin
15 years ago

  • Keywords commit added; dev-feedback removed

I can't come up with a better way to do this, looks good.

#3 @Denis-de-Bernardy
15 years ago

We might as well add the same for terms and links, if we do this.

#4 @Denis-de-Bernardy
15 years ago

terms and links are a can of worms. let's get this in 3.0 and worry about the other ones in 3.1.

#5 @nacin
15 years ago

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

(In [14106]) Add actions to the form tags of user-new, user-edit, and post edit. props sivel, fixes #11933.

Note: See TracTickets for help on using tickets.