Plugin Directory

Changeset 2088626


Ignore:
Timestamp:
05/15/2019 08:55:22 PM (7 years ago)
Author:
tynor
Message:

Apply fixed patch

Location:
lockr/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lockr/trunk/class-lockr-key-list.php

    r1988373 r2088626  
    2020     */
    2121    public function __construct() {
    22         parent::__construct(array(
    23             'singular' => __( 'Key', 'lockr' ),
    24             'plural'   => __( 'Keys', 'lockr' ),
    25             'ajax'     => false,
    26         ));
     22        parent::__construct(
     23            array(
     24                'singular' => __( 'Key', 'lockr' ),
     25                'plural'   => __( 'Keys', 'lockr' ),
     26                'ajax'     => false,
     27            )
     28        );
    2729    }
    2830
     
    5557            'key_label'    => __( 'Key Name' ),
    5658            'key_abstract' => __( 'Key Value' ),
     59            'dev_abstract' => __( 'Dev Value' ),
    5760            'time'         => __( 'Created' ),
    5861            'edit'         => '',
     
    8689            case 'key_abstract':
    8790                return $item->key_abstract;
     91            case 'dev_abstract':
     92                return $item->dev_abstract;
    8893            case 'time':
    8994                return $item->time;
    9095            case 'edit':
    91                 $url  = admin_url( 'admin.php?page=lockr-edit-key' );
    92                 $url .= '&key=' . $item->key_name;
    93                 return "<a href='$url' >edit</a>";
     96                if ( ! $item->auto_created ) {
     97                    $url  = admin_url( 'admin.php?page=lockr-edit-key' );
     98                    $url .= '&key=' . $item->key_name;
     99                    return "<a href='$url' >edit</a>";
     100                }
    94101        }
    95102    }
     
    134141
    135142        // Register the pagination.
    136         $this->set_pagination_args( array(
    137             'total_items' => $totalitems,
    138             'total_pages' => $totalpages,
    139             'per_page'    => $perpage,
    140         ) );
     143        $this->set_pagination_args(
     144            array(
     145                'total_items' => $totalitems,
     146                'total_pages' => $totalpages,
     147                'per_page'    => $perpage,
     148            )
     149        );
    141150
    142151        $columns  = $this->get_columns();
  • lockr/trunk/lockr-secure-posts.php

    r1988381 r2088626  
    127127    global $post;
    128128    $hash_pass = get_option( 'lockr_hash_pass' );
    129     if ( class_exists( Pantheon_sessions ) && ! empty( $post->post_password ) && ! empty( $hash_pass ) ) {
     129    if ( class_exists( 'Pantheon_sessions' ) && ! empty( $post->post_password ) && ! empty( $hash_pass ) ) {
    130130
    131131        if ( ! session_id() ) {
     
    143143
    144144add_action( 'wp', 'lockr_secure_post_postpass_session' );
     145
    145146/**
    146147 * Check for hashed passwords used for protecting posts.
     
    165166    }
    166167}
     168
    167169add_filter( 'post_password_required', 'lockr_password_form_check', 10000, 2 );
  • lockr/trunk/readme.txt

    r2079642 r2088626  
    55557. When ready to deploy to production, follow the prompts provided which will remove the development certificate and place a production one in its place. With production you're in our guaranteed uptime environment.
    5656
    57 You're set! Start entering your keys through the Lockr config or by using our integrations with other plugins!
     57You're set! Start entering your keys through the Lockr config or creating option overrides to integrate with other plugins! To get the values out of Lockr all you will need is the function lockr_get_key([machine_name_of_key]) where you put in the machine name of the key you have set.
     58
     59Be sure to check out our [docs](https://docs.lockr.io) for more details.
    5860
    5961
Note: See TracChangeset for help on using the changeset viewer.