[wp-trac] [WordPress Trac] #26057: Remove redundant current_user_can() check in site-new.php

WordPress Trac noreply at wordpress.org
Fri Nov 15 22:54:30 UTC 2013


#26057: Remove redundant current_user_can() check in site-new.php
---------------------------+-----------------------------
 Reporter:  jeremyfelt     |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Network Admin  |    Version:  3.1
 Severity:  normal         |   Keywords:  has-patch
---------------------------+-----------------------------
 When `site-new.php` was created in [15886], a `current_user_can(
 'manage_sites' )` was moved over from the `add-blog` case in `edit.php`
 and a new check was added at the top of the file. The check inside the
 `add-blog` action is not required anymore as it will never be false.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26057>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list