WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#25799 closed enhancement (fixed)

Add remove_option() and remove_options() to WP_Screen

Reported by: ocean90 Owned by: helen
Milestone: 3.8 Priority: lowest
Severity: minor Version:
Component: Administration Keywords: has-patch commit
Focuses: Cc:
PR Number:

Description

Not sure why, but WP_Screen has no public methods for removing one or all options from a screen. We have methods for removing help tabs so I think we should add them for options too.

Attachments (2)

25799.patch (682 bytes) - added by ocean90 6 years ago.
25799.2.patch (2.5 KB) - added by ocean90 6 years ago.

Download all attachments as: .zip

Change History (6)

@ocean90
6 years ago

#1 @DrewAPicture
6 years ago

  • Cc xoodrew@… added

+1 for 25799.patch.

@ocean90
6 years ago

#2 @ocean90
6 years ago

  • Keywords commit added

25799.2.patch adds also get_options and has unit tests.

#3 @matt
6 years ago

  • Priority changed from normal to lowest
  • Severity changed from normal to minor

#4 @helen
6 years ago

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

In 26456:

Add remove_option(), remove_options(), and get_options() methods to WP_Screen, along with unit tests. props ocean90, DrewAPicture. fixes #25799.

Note: See TracTickets for help on using tickets.