Skip to content

Instantly share code, notes, and snippets.

@sbruner
Created March 19, 2013 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbruner/5199452 to your computer and use it in GitHub Desktop.
Save sbruner/5199452 to your computer and use it in GitHub Desktop.
Piklist temp fix: Media Meta: /includes/class-piklist-media.php
public static function attachment_fields_to_edit($form_fields, $post)
{
global $typenow;
if ($typenow =='attachment')
{
if ($meta_boxes = self::meta_box($post))
{
$form_fields['_final'] = $meta_boxes . '<tr class="final"><td colspan="2">' . (isset($form_fields['_final']) ? $form_fields['_final'] : '');
}
}
return $form_fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment