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