Переглянути джерело

:bug: typos in frontend modules

tags/0.9.0
J 4 роки тому
джерело
коміт
bb7baa55d7

+ 0
- 4
plugins/cia-endpoints/includes/class.make-endpoint.php Переглянути файл

@@ -106,7 +106,6 @@ class Make_Endpoint_For extends WP_REST_Controller {
106 106
     }
107 107
     public function prepare_all_items_for_response( $args ) {
108 108
         $collection = [];
109
-        $alphabet_section = 'a';
110 109
         
111 110
         $q = new WP_Query( $args );
112 111
 
@@ -126,9 +125,6 @@ class Make_Endpoint_For extends WP_REST_Controller {
126 125
             
127 126
             // Don't use the BLOCK system for pages for some reason
128 127
             if($post->post_type == 'page') $formatted[content] = $post->post_content;
129
-            
130
-            // This is where you add to your letter counter
131
-            if($post->post_type == 'artist') {}
132 128
 
133 129
             array_push($collection, $formatted);
134 130
         }

+ 3
- 3
vue-theme/src/store/modules/guide.js Переглянути файл

@@ -3,7 +3,7 @@ import api from '../../utils/api'
3 3
 const state = {
4 4
     all: [],
5 5
     loaded: false,
6
-    singledGuide: null,
6
+    singleGuide: null,
7 7
 }
8 8
 
9 9
 const getters = {
@@ -54,13 +54,13 @@ const mutations = {
54 54
         state.all = guides
55 55
     },
56 56
     STORE_FETCHED_SINGLE_GUIDE(state, guide) {
57
-        state.singledGuide = guide
57
+        state.singleGuide = guide
58 58
     },
59 59
     CLEAR_GUIDES(state) {
60 60
         state.all = []
61 61
     },
62 62
     CLEAR_SINGLE_GUIDES(state) {
63
-        state.singledGuide = null
63
+        state.singleGuide = null
64 64
     },
65 65
     GUIDES_LOADED(state, val) {
66 66
         state.loaded = val

+ 3
- 3
vue-theme/src/store/modules/object.js Переглянути файл

@@ -3,7 +3,7 @@ import api from '../../utils/api'
3 3
 const state = {
4 4
     all: [],
5 5
     loaded: false,
6
-    singledObject: null,
6
+    singleObject: null,
7 7
 }
8 8
 
9 9
 const getters = {
@@ -54,13 +54,13 @@ const mutations = {
54 54
         state.all = objects
55 55
     },
56 56
     STORE_FETCHED_SINGLE_OBJECT(state, object) {
57
-        state.singledObject = object
57
+        state.singleObject = object
58 58
     },
59 59
     CLEAR_OBJECTS(state) {
60 60
         state.all = []
61 61
     },
62 62
     CLEAR_SINGLE_OBJECTS(state) {
63
-        state.singledObject = null
63
+        state.singleObject = null
64 64
     },
65 65
     OBJECTS_LOADED(state, val) {
66 66
         state.loaded = val

+ 3
- 3
vue-theme/src/store/modules/publication.js Переглянути файл

@@ -3,7 +3,7 @@ import api from '../../utils/api'
3 3
 const state = {
4 4
     all: [],
5 5
     loaded: false,
6
-    singledPublication: null,
6
+    singlePublication: null,
7 7
 }
8 8
 
9 9
 const getters = {
@@ -54,13 +54,13 @@ const mutations = {
54 54
         state.all = publications
55 55
     },
56 56
     STORE_FETCHED_SINGLE_PUBLICATION(state, publication) {
57
-        state.singledPublication = publication
57
+        state.singlePublication = publication
58 58
     },
59 59
     CLEAR_PUBLICATIONS(state) {
60 60
         state.all = []
61 61
     },
62 62
     CLEAR_SINGLE_PUBLICATIONS(state) {
63
-        state.singledPublication = null
63
+        state.singlePublication = null
64 64
     },
65 65
     PUBLICATIONS_LOADED(state, val) {
66 66
         state.loaded = val

+ 2
- 2
vue-theme/src/store/modules/short.js Переглянути файл

@@ -54,13 +54,13 @@ const mutations = {
54 54
         state.all = shorts
55 55
     },
56 56
     STORE_FETCHED_SINGLE_SHORT(state, short) {
57
-        state.singledShort = short
57
+        state.singleShort = short
58 58
     },
59 59
     CLEAR_SHORTS(state) {
60 60
         state.all = []
61 61
     },
62 62
     CLEAR_SINGLE_SHORTS(state) {
63
-        state.singledShort = null
63
+        state.singleShort = null
64 64
     },
65 65
     SHORTS_LOADED(state, val) {
66 66
         state.loaded = val

Завантаження…
Відмінити
Зберегти