billerickson/mfields-opengraph-meta-tags — comment on commit 994811fef13ea526f28a8326fcbd91476bfe4c5b
File: mfields-opengraph-meta-tags.php line 45
By mfields:

Awesome find! I love that you're pushing changes back as the Open Graph protocol evolves. I just have a note on coding style here. While I love documentation and think that documentation is super helpful here, it makes it a bit hard (for me) to read here. In cases such as this I prefer to present the docs and then write the code. IMHO it makes both parts easier to read:

/*
* Append a prefix to all keys.
*
* Facebook prefix for 'admins' and 'app_id'.
* Open Graph prefix for all others.
*/
if ( in_array( $key, array( 'admins', 'app_id' ) ) )
$property = 'fb: ' . $key;
else
$property = 'og:' . $key;