Make WordPress Core

Changeset 11979


Ignore:
Timestamp:
09/27/2009 06:54:17 PM (15 years ago)
Author:
markjaquith
Message:

Hide "Attach" link for media (which requires JS) if no JS available. (BUGS ON A PLANE!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r11971 r11979  
    395395        $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>';
    396396        if ( current_user_can('edit_post', $post->ID) )
    397             $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;">'.__('Attach').'</a>';
     397            $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;" class="hide-if-no-js">'.__('Attach').'</a>';
    398398        $actions = apply_filters( 'media_row_actions', $actions, $post );
    399399        $action_count = count($actions);
Note: See TracChangeset for help on using the changeset viewer.