Exemple #1
0
 /**
  * Check if we're clear to call the api
  */
 public function locked()
 {
     global $wpghs;
     if (!$this->api->oauth_token() || !$this->api->repository() || $wpghs->push_lock) {
         return true;
     }
     return false;
 }
Exemple #2
0
 /**
  * Returns the URL for the post on GitHub.
  *
  * @return string
  */
 public function github_edit_url()
 {
     return 'https://github.com/' . $this->api->repository() . '/edit/master/' . $this->github_path();
 }