[wp-trac] [WordPress Trac] #52292: Cannot delete or add images to library after upgrade to WP 5.6 with Multi site

WordPress Trac noreply at wordpress.org
Mon Jan 18 14:55:09 UTC 2021


#52292: Cannot delete or add images to library after upgrade to WP 5.6 with Multi
site
----------------------------+------------------------------
 Reporter:  seniceguy       |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:
 Severity:  blocker         |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by seniceguy):

 * component:  Upload => Filesystem API


Comment:

 below is the section of the functions.php file where a upload or deletion
 gets stuck/hangs/loops indefinably.


         while ( DIRECTORY_SEPARATOR !== $path && '.' !== $path && '..' !==
 $path ) {
                 $path = dirname( $path );
                 unset( $directory_cache[ $path ] );
         }

         set_transient( 'dirsize_cache', $directory_cache );
 }

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


More information about the wp-trac mailing list