Take out unnecessary compat functions from compat.php. Props hakre, ptahdunbar. see #16918
git-svn-id: http://svn.automattic.com/wordpress/trunk@17603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -551,7 +551,7 @@ function wp_save_image($post_id) {
|
||||
|
||||
// generate new filename
|
||||
$path = get_attached_file($post_id);
|
||||
$path_parts = pathinfo52( $path );
|
||||
$path_parts = pathinfo( $path );
|
||||
$filename = $path_parts['filename'];
|
||||
$suffix = time() . rand(100, 999);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user