Changeset 54772 for branches/6.1/src/wp-includes/block-editor.php
- Timestamp:
- 11/09/2022 01:06:46 AM (4 years ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/block-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/block-editor.php
r54291 r54772 154 154 function get_default_block_editor_settings() { 155 155 // Media settings. 156 $max_upload_size = wp_max_upload_size(); 157 if ( ! $max_upload_size ) { 158 $max_upload_size = 0; 156 157 // wp_max_upload_size() can be expensive, so only call it when relevant for the current user. 158 $max_upload_size = 0; 159 if ( current_user_can( 'upload_files' ) ) { 160 $max_upload_size = wp_max_upload_size(); 161 if ( ! $max_upload_size ) { 162 $max_upload_size = 0; 163 } 159 164 } 160 165
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)