WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#19154 closed defect (bug) (fixed)

Add a (simple) way to disable the help tab.

Reported by: koopersmith Owned by: nacin
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.3
Component: General Keywords: has-patch
Focuses: Cc:

Description

Currently, disabling the default help takes some filter-filled goodness. We should have a better, API-sanctioned way.

As for use cases — the new About screen in core is a prime example.

Attachments (1)

19154.diff (2.0 KB) - added by nacin 2 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 nacin2 years ago

The default help might change once the sidebar and such is set, so we'll use this ticket to track it.

I'm thinking a method that either kills (or sets) the default help, or all help.

One option would be a simple filter that we could do either before admin-header is included, or that a plugin could do on load-$pagenow:

add_filter( "show_help_" . get_current_screen()-id, '__return_false' )

Or something like that.

comment:2 nacin2 years ago

Alternative from Ryan: "No default help. It's kinda useless and those links are in the W menu." I like.

nacin2 years ago

comment:3 nacin2 years ago

  • Keywords has-patch added

19154.diff removes the default default help (keeps the filter).

comment:4 jane2 years ago

No default help.

comment:5 nacin2 years ago

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

In [19185]:

Remove default help text. Keep the default_help filter in place for plugins. fixes #19154.

Note: See TracTickets for help on using tickets.