mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Blow out mem limit, slightly larger thumbnails.
git-svn-id: https://develop.svn.wordpress.org/trunk@6786 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1070,7 +1070,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL )
|
||||
|
||||
// separate the filename into a name and extension
|
||||
$info = pathinfo($filename);
|
||||
$ext = strtolower( $info['extension'] );
|
||||
$ext = $info['extension'];
|
||||
$name = basename($filename, ".{$ext}");
|
||||
|
||||
// Increment the file number until we have a unique file to save in $dir. Use $override['unique_filename_callback'] if supplied.
|
||||
@@ -1083,7 +1083,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL )
|
||||
if ( empty( $ext) )
|
||||
$ext = '';
|
||||
else
|
||||
$ext = ".$ext";
|
||||
$ext = strtolower( ".$ext" );
|
||||
$filename = $filename . $ext;
|
||||
while ( file_exists( $dir . "/$filename" ) ) {
|
||||
if ( '' == "$number$ext" )
|
||||
|
||||
@@ -146,8 +146,6 @@ function gallery_shortcode($attr) {
|
||||
$output = "
|
||||
<style type='text/css'>
|
||||
.gallery {
|
||||
width: 450px;
|
||||
left: 50%;
|
||||
margin: auto;
|
||||
}
|
||||
.gallery div {
|
||||
@@ -156,7 +154,7 @@ function gallery_shortcode($attr) {
|
||||
text-align: center;
|
||||
width: 33%; }
|
||||
.gallery img {
|
||||
border: 3px solid #cfcfcf;
|
||||
border: 2px solid #cfcfcf;
|
||||
}
|
||||
</style>
|
||||
<div class='gallery'>
|
||||
|
||||
Reference in New Issue
Block a user