@@ 1985-1987 (lines=3) @@ | ||
1982 | ||
1983 | $repo_updates = get_site_transient( 'update_plugins' ); |
|
1984 | ||
1985 | if ( isset( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version ) ) { |
|
1986 | return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version; |
|
1987 | } |
|
1988 | ||
1989 | return false; |
|
1990 | } |
|
@@ 2008-2010 (lines=3) @@ | ||
2005 | ||
2006 | $repo_updates = get_site_transient( 'update_plugins' ); |
|
2007 | ||
2008 | if ( ! empty( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice ) ) { |
|
2009 | return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice; |
|
2010 | } |
|
2011 | ||
2012 | return ''; |
|
2013 | } |