|
@@ 1976-1978 (lines=3) @@
|
| 1973 |
|
|
| 1974 |
|
$repo_updates = get_site_transient( 'update_plugins' ); |
| 1975 |
|
|
| 1976 |
|
if ( isset( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version ) ) { |
| 1977 |
|
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version; |
| 1978 |
|
} |
| 1979 |
|
|
| 1980 |
|
return false; |
| 1981 |
|
} |
|
@@ 1999-2001 (lines=3) @@
|
| 1996 |
|
|
| 1997 |
|
$repo_updates = get_site_transient( 'update_plugins' ); |
| 1998 |
|
|
| 1999 |
|
if ( ! empty( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice ) ) { |
| 2000 |
|
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice; |
| 2001 |
|
} |
| 2002 |
|
|
| 2003 |
|
return ''; |
| 2004 |
|
} |