Changeset 59189
- Timestamp:
- 10/07/2024 05:11:43 PM (2 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r59171 r59189 877 877 'blog_meta', 878 878 'global-posts', 879 'image_editor', 879 880 'networks', 880 881 'network-queries', -
trunk/src/wp-includes/media.php
r59118 r59189 4192 4192 */ 4193 4193 $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) ); 4194 $supports_input = false; 4194 4195 $editors = wp_cache_get( 'wp_image_editor_choose', 'image_editor' ); 4196 4197 if ( ! is_array( $editors ) ) { 4198 $editors = array(); 4199 } 4200 4201 // Cache the chosen editor implementation based on specific args and available implementations. 4202 $cache_key = md5( serialize( array( $args, $implementations ) ) ); 4203 4204 if ( isset( $editors[ $cache_key ] ) ) { 4205 return $editors[ $cache_key ]; 4206 } 4207 4208 // Assume no support until a capable implementation is identified. 4209 $editor = false; 4195 4210 4196 4211 foreach ( $implementations as $implementation ) { … … 4226 4241 * Keep looking to see if we can find an implementation that supports both. 4227 4242 */ 4228 $ supports_input= $implementation;4243 $editor = $implementation; 4229 4244 continue; 4230 4245 } 4231 4246 4232 4247 // Favor the implementation that supports both input and output mime types. 4233 return $implementation; 4234 } 4235 4236 return $supports_input; 4248 $editor = $implementation; 4249 break; 4250 } 4251 4252 $editors[ $cache_key ] = $editor; 4253 4254 wp_cache_set( 'wp_image_editor_choose', $editors, 'image_editor', DAY_IN_SECONDS ); 4255 4256 return $editor; 4237 4257 } 4238 4258 -
trunk/src/wp-includes/ms-blogs.php
r57898 r59189 555 555 'blog_meta', 556 556 'global-posts', 557 'image_editor', 557 558 'networks', 558 559 'network-queries', … … 649 650 'blog_meta', 650 651 'global-posts', 652 'image_editor', 651 653 'networks', 652 654 'network-queries',
Note: See TracChangeset
for help on using the changeset viewer.