WordPress.org

Make WordPress Core

Opened 2 months ago

#43848 new enhancement

Function "user_can_access_admin_page" refactor.

Reported by: rnaby Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Administration Keywords: has-patch needs-testing
Focuses: Cc:

Description

I think this user_can_access_admin_page function should looks more clean and better this way. Also added a description of the function.

Attachments (2)

43848.diff (1.8 KB) - added by rnaby 2 months ago.
The patch for the enhancement.
43848.2.diff (3.3 KB) - added by rnaby 2 months ago.
Another improved patch. Merged some if statement and refactored.

Download all attachments as: .zip

Change History (2)

@rnaby
2 months ago

The patch for the enhancement.

@rnaby
2 months ago

Another improved patch. Merged some if statement and refactored.

Note: See TracTickets for help on using tickets.