[wp-trac] [WordPress Trac] #53039: Not invalidating files in opcode cache after core update (cont’d)

WordPress Trac noreply at wordpress.org
Thu Apr 15 09:39:14 UTC 2021


#53039: Not invalidating files in opcode cache after core update (cont’d)
-----------------------------+------------------------------
 Reporter:  Krstarica        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  5.7.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by Krstarica):

 Nag is displayed based on the output of get_preferred_from_update_core():

 {{{
 $cur = get_preferred_from_update_core();

 if ( ! isset( $cur->response ) || 'upgrade' !== $cur->response ) {
         return false;
 }
 }}}

 get_preferred_from_update_core() calls get_core_updates() which contains:

 {{{
 $from_api = get_site_transient( 'update_core' );
 }}}

 Dumped this variable:

 {{{
 from_api: stdClass Object
 (
     [updates] => Array
         (
             [0] => stdClass Object
                 (
                     [response] => upgrade
                     [download] =>
 https://downloads.wordpress.org/release/sr_RS/wordpress-5.7.1.zip
                     [locale] => sr_RS
                     [packages] => stdClass Object
                         (
                             [full] =>
 https://downloads.wordpress.org/release/sr_RS/wordpress-5.7.1.zip
                             [no_content] =>
                             [new_bundled] =>
                             [partial] =>
                             [rollback] =>
                         )

                     [current] => 5.7.1
                     [version] => 5.7.1
                     [php_version] => 5.6.20
                     [mysql_version] => 5.0
                     [new_bundled] => 5.6
                     [partial_version] =>
                 )

         )

     [last_checked] => 1618478516
     [version_checked] => 5.7.1
     [translations] => Array
         (
         )

 )
 }}}
 It clearly shows that current and available versions are the same.

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


More information about the wp-trac mailing list