Dashboard: Do not show 'Popular Plugin' UI if `DISALLOW_FILE_MODS` is set.
Props Mte90. Fixes #37436. Built from https://develop.svn.wordpress.org/trunk@38825 git-svn-id: http://core.svn.wordpress.org/trunk@38768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
64886517b9
commit
39433ad092
|
@ -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(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38824';
|
||||
$wp_version = '4.7-alpha-38825';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue