|
@@ 1995-1997 (lines=3) @@
|
| 1992 |
|
|
| 1993 |
|
$repo_updates = get_site_transient( 'update_plugins' ); |
| 1994 |
|
|
| 1995 |
|
if ( isset( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version ) ) { |
| 1996 |
|
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version; |
| 1997 |
|
} |
| 1998 |
|
|
| 1999 |
|
return false; |
| 2000 |
|
} |
|
@@ 2018-2020 (lines=3) @@
|
| 2015 |
|
|
| 2016 |
|
$repo_updates = get_site_transient( 'update_plugins' ); |
| 2017 |
|
|
| 2018 |
|
if ( ! empty( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice ) ) { |
| 2019 |
|
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice; |
| 2020 |
|
} |
| 2021 |
|
|
| 2022 |
|
return ''; |
| 2023 |
|
} |