attachments icon indicating copy to clipboard operation
attachments copied to clipboard

no dash in the instance name

Open zetoun17 opened this issue 12 years ago • 1 comments
trafficstars

juste a tip :never use the dash '-' in the instance name ! it will be saved a and underscore '_' .

eg : $attachments = new Attachments( 'my-att' ); // will be saved as 'my_att' in the post meta

zetoun17 avatar May 20 '13 11:05 zetoun17

Yes you are correct, this is a result of the name eventually making it's way to being an object property, and the syntax for retrieving that isn't familiar to everyone. I'm going to leave this Issue open for the time being, however, because I think this can be thought out a bit more...

jchristopher avatar May 20 '13 13:05 jchristopher