Plugin Directory

Changeset 2382875


Ignore:
Timestamp:
09/16/2020 12:29:32 PM (6 years ago)
Author:
accesstype
Message:

Update readme and review comment changes

Location:
accesstype/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • accesstype/trunk/admin/styles/accesstype_admin.css

    r2382617 r2382875  
    8888.accesstype-admin-container__input .accesstype-settings-input {
    8989  width: 40%;
    90   height: 51px;
     90  height: 40px;
    9191  border: 1px solid var(--main-border-color);
    9292  color: var(--active-tab-color);
     
    9595.accesstype-configure-container .accesstype-settings-input {
    9696  width: 299px;
    97   height: 51px;
     97  height: 40px;
    9898  border: 1px solid var(--main-border-color);
    9999  color: var(--active-tab-color);
  • accesstype/trunk/includes/apis.php

    r2382617 r2382875  
    22function get_accesstype_post_attributes( $data ) {
    33  $post_id = $data['story-id'];
    4   $post = get_post( $post_id );
     4  $post = get_post( absint($post_id) );
    55
    66  if ( empty( $post ) ) {
  • accesstype/trunk/includes/functions/functions.php

    r2382617 r2382875  
    165165
    166166    $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 );
    168168
    169169    $accesstype_visibility  = sanitize_key(( ! empty( $_POST[ 'accesstype_visibility' ] ) ) ? $_POST[ 'accesstype_visibility' ] : null);
     
    261261    $accesstype_visibility = get_post_meta( $post->ID, 'accesstype_visibility', true ) ?: 'public';
    262262    if( $accesstype_visibility == 'public' )
    263       return $accesstype_visibility;
     263      return $content;
    264264
    265265    $jwt_token = get_accesstype_jwt_token() ?: null;
  • accesstype/trunk/readme.txt

    r2382617 r2382875  
    33332. My subscriptions
    34343. Hard Paywall
    35 4. Metered Paywall
    36 5. Configure plugin
     354. Configure plugin
    3736
    3837
Note: See TracChangeset for help on using the changeset viewer.