mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Take out unnecessary compat functions from compat.php. Props hakre, ptahdunbar. see #16918
git-svn-id: https://develop.svn.wordpress.org/trunk@17603 602fd350-edb4-49c9-b593-d223f7449a82
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