Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#21317 closed enhancement (fixed)

Should "_media_button" function be deprecated?

Reported by: martythornley's profile martythornley Owned by: ryan's profile ryan
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch
Focuses: Cc:


Looking at media uploads, looks like the function _media_button is not used anywhere? defined in media.php line 389 but can't find it used anywhere?

Change History (4)

#1 @scribu
11 years ago

  • Keywords needs-patch added

I guess since there's only one button now, we don't need it.

I think we can just remove it outright.

#2 @SergeyBiryukov
11 years ago

Unused since [18890].

Related: #20427

#3 @nacin
11 years ago

  • Milestone changed from Awaiting Review to 3.5

Like #20427, I'd like to at least leave it in deprecated.php in case it is called directly by a plugin. I found at least a few instances in a search of the plugins directory.

#4 @ryan
11 years ago

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

In [21353]:

Deprecate and stub _media_button. fixes #21317

Note: See TracTickets for help on using tickets.