|
@@ 1979-1981 (lines=3) @@
|
| 1976 |
|
|
| 1977 |
|
$repo_updates = get_site_transient( 'update_plugins' ); |
| 1978 |
|
|
| 1979 |
|
if ( isset( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version ) ) { |
| 1980 |
|
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version; |
| 1981 |
|
} |
| 1982 |
|
|
| 1983 |
|
return false; |
| 1984 |
|
} |
|
@@ 2002-2004 (lines=3) @@
|
| 1999 |
|
|
| 2000 |
|
$repo_updates = get_site_transient( 'update_plugins' ); |
| 2001 |
|
|
| 2002 |
|
if ( ! empty( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice ) ) { |
| 2003 |
|
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice; |
| 2004 |
|
} |
| 2005 |
|
|
| 2006 |
|
return ''; |
| 2007 |
|
} |