mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 11:14:36 +00:00
Add @static* annotations where they are missing.
Initialize all static vars that are not, most to `null`. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -136,11 +136,13 @@ function theme_update_available( $theme ) {
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @staticvar object $themes_update
|
||||
*
|
||||
* @param WP_Theme $theme WP_Theme object.
|
||||
* @return false|string HTML for the update link, or false if invalid info was passed.
|
||||
*/
|
||||
function get_theme_update_available( $theme ) {
|
||||
static $themes_update;
|
||||
static $themes_update = null;
|
||||
|
||||
if ( !current_user_can('update_themes' ) )
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user