Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#31164 closed defect (bug) (fixed)

Hide the "Need Help..." text from the Page Attributes meta-box if the help tab is hidden

Reported by: bananastalktome Owned by: SergeyBiryukov
Priority: normal Milestone: 4.2
Component: Help/About Version: 3.0
Severity: trivial Keywords: has-patch
Cc: Focuses:

Description

Even if the "Help" tab has been hidden (using $current_screen->remove_help_tabs()), the "Need help? Use the Help tab in the upper right of your screen." message still appears on the Page Attributes meta-box when editing a page.

The included patch will check if get_current_screen()->get_help_tabs() != false (in addition to whether it is a 'page' post type) in order to show the message.

Attachments (1)

31164.diff​ (797 bytes ) - added by bananastalktome 12 years ago.

Download all attachments as: .zip

Change History (4)

#1 @bananastalktome
12 years ago

  • Keywords has-patch added
  • Severity normal → trivial

#2 @DrewAPicture
12 years ago

  • Milestone Awaiting Review → 4.2
  • Version trunk → 3.0

#3 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 31303:

Don't display the Help tab reference in Page Attributes meta box if Help tab was removed.

props bananastalktome.
fixes #31164.

Note: See TracTickets for help on using tickets.