[wp-trac] [WordPress Trac] #10763: Abstract function for authorization check in admin pages
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 10 08:04:38 UTC 2009
#10763: Abstract function for authorization check in admin pages
------------------------------+---------------------------------------------
Reporter: johnjosephbachir | Owner: ryan
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Security | Version: 2.8.4
Severity: normal | Keywords: needs-patch dev-feedback
------------------------------+---------------------------------------------
Comment(by dd32):
> How about this invocation then?
Would work.
Whilst i dont like repeating code.. The auth checks are simple if
statements, It makes it obvious as to what happens. "If not current user
can perform manage_options, then die with message BlahBlahBlah". I'd
favour leaving them be for the simple fact of readable code.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10763#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list