[wp-trac] [WordPress Trac] #40557: Simplify wp_die call in sites.php

WordPress Trac noreply at wordpress.org
Mon Apr 24 18:53:23 UTC 2017


#40557: Simplify wp_die call in sites.php
--------------------------+-----------------------------
 Reporter:  Presskopp     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In ''\src\wp-admin\network\sites.php, L. 126'' there's

 {{{#!php
 wp_die( __( 'Sorry, you are not allowed to access this page.' ), '',
 array( 'response' => 403 ) );
 }}}

 This can be simplified to:
 {{{#!php
 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40557>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list