Changeset 53203
- Timestamp:
- 04/18/2022 10:31:40 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r53060 r53203 218 218 * @since MU (3.0.0) 219 219 * 220 * @param bool $echo Optional. If $echo is set and the quota is exceeded, a warning message is echoed. Default is true. 220 * @param bool $display_message Optional. If set to true and the quota is exceeded, 221 * a warning message is displayed. Default true. 221 222 * @return bool True if user is over upload space quota, otherwise false. 222 223 */ 223 function upload_is_user_over_quota( $ echo= true ) {224 function upload_is_user_over_quota( $display_message = true ) { 224 225 if ( get_site_option( 'upload_space_check_disabled' ) ) { 225 226 return false; … … 233 234 234 235 if ( ( $space_allowed - $space_used ) < 0 ) { 235 if ( $ echo) {236 if ( $display_message ) { 236 237 printf( 237 238 /* translators: %s: Allowed space allocation. */
Note: See TracChangeset
for help on using the changeset viewer.