This file contains 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
<?php | |
add_filter( 'sanitize_file_name', 'cb_sanitize_file_name' ); | |
/** | |
* {@internal Missing short description}} | |
* | |
* @link wp-includes|formatting.php | |
* @todo causing errors at media-new.php | |
*/ | |
function cb_sanitize_file_name( $filename ) { | |
if ( isset( $_REQUEST['post_id'] ) ) |