8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3137dd commit b3940afCopy full SHA for b3940af
wordpress/transport.py
@@ -40,13 +40,17 @@ def api_url(self):
40
]
41
return UrlUtils.join_components(components)
42
43
+ @property
44
+ def is_wp_json_v1(self):
45
+ return self.api == 'wp-json' and self.api_version == 'wp/v1'
46
+
47
@property
48
def api_ver_url(self):
49
components = [
50
self.url,
51
self.api,
52
- if self.api_version != 'wp/v1':
53
+ if not self.is_wp_json_v1:
54
components += [
55
self.api_version
56
@@ -64,7 +68,7 @@ def endpoint_url(self, endpoint):
64
68
65
69
self.api
66
70
67
71
72
73
74
0 commit comments