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

Fixed r26

parent 7c2c173f
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,11 @@ class Site(object): ...@@ -156,7 +156,11 @@ class Site(object):
@staticmethod @staticmethod
def _query_string(*args, **kwargs): def _query_string(*args, **kwargs):
kwargs.update(args) kwargs.update(args)
return urllib.urlencode([(k, Site._to_str(v)) for k, v in kwargs.iteritems()]) qs = urllib.urlencode([(k, Site._to_str(v)) for k, v in kwargs.iteritems()
if k != 'wpEditToken'])
if 'wpEditToken' in kwargs:
qs += '&wpEditToken=' + urllib.quote(Site._to_str(kwargs['wpEditToken']))
return qs
def raw_call(self, script, data): def raw_call(self, script, data):
url = self.path + script + '.php' 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