Ticket #21650: 14157-ms-php.fixed.diff
File 14157-ms-php.fixed.diff, 1.5 KB (added by , 10 years ago) |
---|
-
media.php
3020 3020 3021 3021 // Media Library 3022 3022 'editMetadata' => __( 'Edit Metadata' ), 3023 'noMedia' => __( 'No media found. Try a different search.' ),3023 'noMedia' => __( 'No media attachments found.' ), 3024 3024 ); 3025 3025 3026 3026 /** -
cache.php
639 639 echo "</p>"; 640 640 echo '<ul>'; 641 641 foreach ($this->cache as $group => $cache) { 642 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>'; 642 try { 643 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>'; 644 } catch( Exception $e ) { 645 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( print_r( $cache, true ) ) / 1024, 2 ) . 'k )</li>'; 646 } 643 647 } 644 648 echo '</ul>'; 645 649 } -
default-constants.php
18 18 // set memory limits 19 19 if ( !defined('WP_MEMORY_LIMIT') ) { 20 20 if( is_multisite() ) { 21 define('WP_MEMORY_LIMIT', '80M'); 22 } else { 21 23 define('WP_MEMORY_LIMIT', '64M'); 22 } else {23 define('WP_MEMORY_LIMIT', '40M');24 24 } 25 25 } 26 26