PluginProbe
Passster – Password Protect Pages and Content / 4.3.17
Passster – Password Protect Pages and Content v4.3.17
4.3.17 4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 All 49 releases
← All changes | assets/public/passster-public.js +2 -0 4.3.15 → 4.3.17 View file →
@@ -155,8 +155,9 @@
155 155 const protection = $input.attr( 'data-protection' ) || '';
156 156 const acf = $button.attr( 'data-acf' ) || '';
157 157 const redirect = $button.attr( 'data-redirect' ) || '';
158 158 const termId = parseInt( $button.attr( 'data-term-id' ) ) || 0;
159 + const postType = $button.attr( 'data-post-type' ) || '';
159 160
160 161 // Get block ID from parent wrapper if exists.
161 162 const $wrapper = $form.closest( '.passster-protected-content' );
162 163 const blockId = $wrapper.length ? $wrapper.attr( 'data-block-id' ) : '';
@@ -179,8 +180,9 @@
179 180 protection,
180 181 acf,
181 182 redirect,
182 183 term_id: termId,
184 + post_type: postType,
183 185 } ),
184 186 } );
185 187
186 188 const data = await response.json();