IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
225 | 225 | } |
226 | 226 | |
227 | 227 | $count = ''; |
228 | | if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) { |
| 228 | if ( ! is_multisite() ) { |
229 | 229 | if ( ! isset( $update_data ) ) { |
230 | 230 | $update_data = wp_get_update_data(); |
231 | 231 | } |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
688 | 688 | 'translations' => 0, |
689 | 689 | ); |
690 | 690 | |
691 | | $plugins = current_user_can( 'update_plugins' ); |
692 | | |
693 | | if ( $plugins ) { |
694 | | $update_plugins = get_site_transient( 'update_plugins' ); |
| 691 | $update_plugins = get_site_transient( 'update_plugins' ); |
695 | 692 | |
696 | | if ( ! empty( $update_plugins->response ) ) { |
697 | | $counts['plugins'] = count( $update_plugins->response ); |
698 | | } |
| 693 | if ( ! empty( $update_plugins->response ) ) { |
| 694 | $counts['plugins'] = count( $update_plugins->response ); |
699 | 695 | } |
700 | 696 | |
701 | | $themes = current_user_can( 'update_themes' ); |
702 | | |
703 | | if ( $themes ) { |
704 | | $update_themes = get_site_transient( 'update_themes' ); |
| 697 | $update_themes = get_site_transient( 'update_themes' ); |
705 | 698 | |
706 | | if ( ! empty( $update_themes->response ) ) { |
707 | | $counts['themes'] = count( $update_themes->response ); |
708 | | } |
| 699 | if ( ! empty( $update_themes->response ) ) { |
| 700 | $counts['themes'] = count( $update_themes->response ); |
709 | 701 | } |
710 | 702 | |
711 | | $core = current_user_can( 'update_core' ); |
712 | | |
713 | | if ( $core && function_exists( 'get_core_updates' ) ) { |
| 703 | if ( function_exists( 'get_core_updates' ) ) { |
714 | 704 | $update_wordpress = get_core_updates( array( 'dismissed' => false ) ); |
715 | 705 | |
716 | 706 | if ( ! empty( $update_wordpress ) |
717 | 707 | && ! in_array( $update_wordpress[0]->response, array( 'development', 'latest' ), true ) |
718 | | && current_user_can( 'update_core' ) |
719 | 708 | ) { |
720 | 709 | $counts['wordpress'] = 1; |
721 | 710 | } |
722 | 711 | } |
723 | 712 | |
724 | | if ( ( $core || $plugins || $themes ) && wp_get_translation_updates() ) { |
| 713 | if ( wp_get_translation_updates() ) { |
725 | 714 | $counts['translations'] = 1; |
726 | 715 | } |
727 | 716 | |