Make WordPress Core

Opened 10 years ago

Closed 10 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's profile bananastalktome Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.2 Priority: normal
Severity: trivial Version: 3.0
Component: Help/About Keywords: has-patch
Focuses: Cc:

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 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @bananastalktome
10 years ago

  • Keywords has-patch added
  • Severity changed from normal to trivial

#2 @DrewAPicture
10 years ago

  • Milestone changed from Awaiting Review to 4.2
  • Version changed from trunk to 3.0

#3 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to 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.