I need this done RIGHT AWAY its simple fix , dont bid on the project if you cant finish in maximum few hours. I had 2 people already say its very easy and then they cant do it. Dont waste my time if you dont have real knowledge.
I use the the plugin attachments for WordPress. [url removed, login to view]
When I attach an mp3 song, it converts the blank spaces with dashes "-" I dont want this to happen.
Before: 01. -Going-Wild-Before-Testing = WRONG (See attached image)
How it should be: 01. Going Wild Before Testing = CORRECT
Maybe this php code has something to do with it ?
* Our own implementation of WordPress' get_post_type() as it's not
* functional when we need it
* @since 3.0
// TODO: Retrieving the post_type at this point is ugly to say the least. This needs major cleanup.
if( empty( $post->ID ) && isset( $_GET['post_type'] ) )
$post_type = str_replace( '-', '_', sanitize_title( $_GET['post_type'] ) ); // TODO: Better sanitization
elseif( !empty( $post->ID ) )
$post_type = get_post_type( $post->ID );
elseif( isset( $_GET['post'] ) )
$post_type = get_post_type( intval( $_GET['post'] ) );
$post_type = 'post';