[wp-trac] [WordPress Trac] #44429: WordPress update Failure

WordPress Trac noreply at wordpress.org
Thu Jun 21 21:04:04 UTC 2018


#44429: WordPress update Failure
--------------------------+------------------------------
 Reporter:  ecahost7      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by afragen):

 There is likely an error in
 [https://core.trac.wordpress.org/home/rsed43dqsw/public_html/wp-
 content/plugins/force-https-littlebizzy/core/redirect.php:68] that needs
 to return when using in WP-CLI.

 The issue is {{{wp_redirect()}}} doesn’t play well with WP-CLI and you
 will need to modify the code to exit early and not perform the
 {{{wp_redirect()}}} call in WP-CLI.

 Adding something like the following at the beginning of that
 {{{redirect()}}} function should fix it.


 {{{
 if ( defined( ‘WP_CLI’) && WP_CLI ) {
     return;
 }
 }}}

 Make sure the single quotes copy correctly. I don’t know if they are
 correct in the above code example.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44429#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list