Changeset 2382875
- Timestamp:
- 09/16/2020 12:29:32 PM (6 years ago)
- Location:
- accesstype/trunk
- Files:
-
- 4 edited
-
admin/styles/accesstype_admin.css (modified) (2 diffs)
-
includes/apis.php (modified) (1 diff)
-
includes/functions/functions.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
accesstype/trunk/admin/styles/accesstype_admin.css
r2382617 r2382875 88 88 .accesstype-admin-container__input .accesstype-settings-input { 89 89 width: 40%; 90 height: 51px;90 height: 40px; 91 91 border: 1px solid var(--main-border-color); 92 92 color: var(--active-tab-color); … … 95 95 .accesstype-configure-container .accesstype-settings-input { 96 96 width: 299px; 97 height: 51px;97 height: 40px; 98 98 border: 1px solid var(--main-border-color); 99 99 color: var(--active-tab-color); -
accesstype/trunk/includes/apis.php
r2382617 r2382875 2 2 function get_accesstype_post_attributes( $data ) { 3 3 $post_id = $data['story-id']; 4 $post = get_post( $post_id);4 $post = get_post( absint($post_id) ); 5 5 6 6 if ( empty( $post ) ) { -
accesstype/trunk/includes/functions/functions.php
r2382617 r2382875 165 165 166 166 $post_ids = ( ! empty( $_POST[ 'post_ids' ] ) ) ? $_POST[ 'post_ids' ] : array(); 167 $post_ids = array_map( ' sanitize_key', $post_ids );167 $post_ids = array_map( 'absint', $post_ids ); 168 168 169 169 $accesstype_visibility = sanitize_key(( ! empty( $_POST[ 'accesstype_visibility' ] ) ) ? $_POST[ 'accesstype_visibility' ] : null); … … 261 261 $accesstype_visibility = get_post_meta( $post->ID, 'accesstype_visibility', true ) ?: 'public'; 262 262 if( $accesstype_visibility == 'public' ) 263 return $ accesstype_visibility;263 return $content; 264 264 265 265 $jwt_token = get_accesstype_jwt_token() ?: null; -
accesstype/trunk/readme.txt
r2382617 r2382875 33 33 2. My subscriptions 34 34 3. Hard Paywall 35 4. Metered Paywall 36 5. Configure plugin 35 4. Configure plugin 37 36 38 37
Note: See TracChangeset
for help on using the changeset viewer.