jaredatch/Custom-Metaboxes-and-Fields-for-WordPress — comment on commit b9c7f97ee893e124b52ca914f2489f4c9abad8d7
File: init.php line 83
By GaryJones:

Neater would be to do something like:

```if ( $upload && in_array( $pagenow, array( 'page.php', 'page-new.php', 'post.php', 'post-new.php' ) ) {```