public function upload($args)
 {
     extract($args);
     $out .= "<label>{$name}</label>";
     $out .= WPZOOM_Medialib_Uploader::action($id, $value, $desc, 0, $name);
     return $out;
 }
Ejemplo n.º 2
0
 public function upload($args)
 {
     extract($args);
     $out .= "<label>{$name}</label>";
     if ($id === 'misc_favicon' && function_exists('has_site_icon')) {
         $out .= sprintf(__('<p>This option has been deprecated in favor of the Site Icon setting in WordPress core. Please visit %s to configure your site icon.</p>', 'wpzoom'), sprintf('<a href="%1$s">%2$s</a>', esc_url(admin_url('options-general.php')), __('General Settings', 'wpzoom')));
     } else {
         $out .= WPZOOM_Medialib_Uploader::action($id, $value, $desc, 0, $name);
     }
     return $out;
 }