Dashboard: Do not show 'Popular Plugin' UI if DISALLOW_FILE_MODS
is set.
Props Mte90. Fixes #37436. git-svn-id: https://develop.svn.wordpress.org/trunk@38825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0e41016df8
commit
4225b1655e
@ -1149,7 +1149,7 @@ function wp_dashboard_primary() {
|
||||
)
|
||||
);
|
||||
|
||||
if ( ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) {
|
||||
if ( ( ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS ) && ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) {
|
||||
$feeds['plugins'] = array(
|
||||
'link' => '',
|
||||
'url' => array(
|
||||
|
Loading…
Reference in New Issue
Block a user