Thanks Paolo, no problem, in my case I’d like to have the file renamed using the post title,
In the mean time I managed to rename the file using the post title by adding the following code to the core.class.php and admin.class.php files.
In core.class.php, on line 100:
case “C”: $file_name = str_replace( array(“.”,”_”,”-“,” “) ,$sep, sanitize_title( get_the_title() ) ).$sep.$file_name; break;
In admin.class.php, line 85:
“C” => ‘Post title and the filename’
So far it works really well by adding the post name before the filename which is pretty much what I need. I did not looked into the “demo string” feature and I realise that I have to use an IF somewhere to intercept situations where the post does not have a name defined.
But so far so good, I’m happy with this. That’s why open source rocks. And that’s why I thank you again ??