Move plugin details link into the description area.
fixes #17902. Built from https://develop.svn.wordpress.org/trunk@29371 git-svn-id: http://core.svn.wordpress.org/trunk@29149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
666fec5144
commit
58b22fce7d
|
@ -405,15 +405,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
|
||||
} // end if $screen->in_admin( 'network' )
|
||||
|
||||
// Details link using API info, if available
|
||||
if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && isset( $plugin_data['slug'] ) ) {
|
||||
$actions['details'] = sprintf( '<a href="%s" class="thickbox" title="%s">%s</a>',
|
||||
esc_url( self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data['slug'] .
|
||||
'&TB_iframe=true&width=600&height=550' ) ),
|
||||
esc_attr( sprintf( __( 'More information about %s' ), $plugin_data['Name'] ) ),
|
||||
__( 'Details' ) );
|
||||
}
|
||||
|
||||
if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
|
||||
$actions['edit'] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . esc_attr__('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';
|
||||
} // end if $context
|
||||
|
@ -517,8 +508,21 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
$author = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
|
||||
$plugin_meta[] = sprintf( __( 'By %s' ), $author );
|
||||
}
|
||||
if ( ! empty( $plugin_data['PluginURI'] ) )
|
||||
$plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '">' . __( 'Visit plugin site' ) . '</a>';
|
||||
|
||||
if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) ) {
|
||||
// Details link using API info, if available
|
||||
if ( isset( $plugin_data['slug'] ) ) {
|
||||
$plugin_meta[] = sprintf( '<a href="%s" class="thickbox">%s</a>',
|
||||
esc_url( self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data['slug'] .
|
||||
'&TB_iframe=true&width=600&height=550' ) ),
|
||||
__( 'View details' ) );
|
||||
} elseif ( ! empty( $plugin_data['PluginURI'] ) ) {
|
||||
$plugin_meta[] = sprintf( '<a href="%s">%s</a>',
|
||||
esc_url( $plugin_data['PluginURI'] ),
|
||||
__( 'Visit plugin site' )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the array of row meta for each plugin in the Plugins list table.
|
||||
|
|
Loading…
Reference in New Issue