wp/wp-admin/includes/class-wp-plugins-list-table.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   192 		}
   192 		}
   193 
   193 
   194 		if ( $screen->in_admin( 'network' ) ) {
   194 		if ( $screen->in_admin( 'network' ) ) {
   195 			update_site_option( 'recently_activated', $recently_activated );
   195 			update_site_option( 'recently_activated', $recently_activated );
   196 		} else {
   196 		} else {
   197 			update_option( 'recently_activated', $recently_activated );
   197 			update_option( 'recently_activated', $recently_activated, false );
   198 		}
   198 		}
   199 
   199 
   200 		$plugin_info = get_site_transient( 'update_plugins' );
   200 		$plugin_info = get_site_transient( 'update_plugins' );
   201 
   201 
   202 		foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
   202 		foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
   692 
   692 
   693 		return parent::current_action();
   693 		return parent::current_action();
   694 	}
   694 	}
   695 
   695 
   696 	/**
   696 	/**
       
   697 	 * Generates the list table rows.
       
   698 	 *
       
   699 	 * @since 3.1.0
       
   700 	 *
   697 	 * @global string $status
   701 	 * @global string $status
   698 	 */
   702 	 */
   699 	public function display_rows() {
   703 	public function display_rows() {
   700 		global $status;
   704 		global $status;
   701 
   705 
  1592 				)
  1596 				)
  1593 			);
  1597 			);
  1594 		}
  1598 		}
  1595 
  1599 
  1596 		printf(
  1600 		printf(
  1597 			'<div class="requires"><p>%1$s</p><p>%2$s</p></div>',
  1601 			'<div class="requires"><p>%1$s</p>%2$s</div>',
  1598 			$requires,
  1602 			$requires,
  1599 			$notice
  1603 			$notice
  1600 		);
  1604 		);
  1601 	}
  1605 	}
  1602 
  1606