Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cleanup

  • Loading branch information...
commit b423d30e595b618aa12bfa3af41b5f6a15e4fb5a 1 parent 76e676e
Zach Graves zachgraves authored

Showing 1 changed file with 4 additions and 8 deletions. Show diff stats Hide diff stats

  1. +4 8 yupdates.php
12 yupdates.php
@@ -85,8 +85,9 @@ function yupdates_auth_init() {
85 85 } else if(array_key_exists("auth_popup", $_REQUEST)) {
86 86 yupdates_close_popup();
87 87 }
88   -
  88 +
89 89 // show warnings
  90 +
90 91 if($session->hasSession == false) {
91 92 if($session->store->hasRequestToken()) {
92 93 $request_token = $session->store->fetchRequestToken();
@@ -95,14 +96,9 @@ function yupdates_auth_init() {
95 96 } else if(stripos($_SERVER["REQUEST_URI"], USER_MENU_URI) === FALSE) {
96 97 add_action("admin_notices", "yupdates_authorization_warning");
97 98 }
98   - }/* else if(yupdatesdb_hasApplicationInfo() && stripos($_SERVER["REQUEST_URI"], USER_MENU_URI) === FALSE ) {
99   - echo "no request token";
  99 + } else if(yupdatesdb_hasApplicationInfo() && stripos($_SERVER["REQUEST_URI"], USER_MENU_URI) === FALSE ) {
100 100 add_action("admin_notices", "yupdates_authorization_warning");
101   - } else if($session->store->hasAccessToken()) {
102   - // do nothing, we're all set now.
103   - } else {
104   - echo "no tokens!";
105   - }*/
  101 + }
106 102 }
107 103
108 104 if(!yupdatesdb_hasApplicationInfo() && stripos($_SERVER["REQUEST_URI"], PLUGIN_OPTIONS_URI) === FALSE) {

0 comments on commit b423d30

Please sign in to comment.
Something went wrong with that request. Please try again.