Skip to content
Snippets Groups Projects
Commit c01dae0b authored by Bryan Tong Minh's avatar Bryan Tong Minh
Browse files

Revert to r25

parent c2b37c80
No related branches found
No related tags found
No related merge requests found
......@@ -156,11 +156,7 @@ class Site(object):
@staticmethod
def _query_string(*args, **kwargs):
kwargs.update(args)
qs = urllib.urlencode([(k, Site._to_str(v)) for k, v in kwargs.iteritems()
if k != 'wpEditToken'])
if 'wpEditToken' in kwargs:
qs += '&wpEditToken=' + Site._to_str(kwargs['wpEditToken'])
return qs
return urllib.urlencode([(k, Site._to_str(v)) for k, v in kwargs.iteritems()])
def raw_call(self, script, data):
url = self.path + script + '.php'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment