Remove remove_edit_plugin_link(). Rely on cap checks. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12902 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1f8632249d
commit
402b998100
@ -1018,15 +1018,6 @@ function check_wpmu_plugins_on_bulk_activate( $plugins ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_edit_plugin_link( $action_links, $plugin_file, $plugin_data, $context ) {
|
|
||||||
foreach( $action_links as $t => $link ) {
|
|
||||||
if ( !strpos( $link, __( "Open this file in the Plugin Editor" ) ) )
|
|
||||||
$links[ $t ] = $link;
|
|
||||||
}
|
|
||||||
return $links;
|
|
||||||
}
|
|
||||||
add_filter( 'plugin_action_links', 'remove_edit_plugin_link', 10, 4 );
|
|
||||||
|
|
||||||
function choose_primary_blog() {
|
function choose_primary_blog() {
|
||||||
global $current_user;
|
global $current_user;
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user