This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpsx_5505_modify_uploaded_file_names($arr) { | |
// Get the parent post ID, if there is one | |
if( isset($_REQUEST['post_id']) ) { | |
$post_id = $_REQUEST['post_id']; | |
} else { | |
$post_id = false; | |
} | |
// Only do this if we got the post ID--otherwise they're probably in |