Changeset 2088626
- Timestamp:
- 05/15/2019 08:55:22 PM (7 years ago)
- Location:
- lockr/trunk
- Files:
-
- 3 edited
-
class-lockr-key-list.php (modified) (4 diffs)
-
lockr-secure-posts.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lockr/trunk/class-lockr-key-list.php
r1988373 r2088626 20 20 */ 21 21 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 ); 27 29 } 28 30 … … 55 57 'key_label' => __( 'Key Name' ), 56 58 'key_abstract' => __( 'Key Value' ), 59 'dev_abstract' => __( 'Dev Value' ), 57 60 'time' => __( 'Created' ), 58 61 'edit' => '', … … 86 89 case 'key_abstract': 87 90 return $item->key_abstract; 91 case 'dev_abstract': 92 return $item->dev_abstract; 88 93 case 'time': 89 94 return $item->time; 90 95 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 } 94 101 } 95 102 } … … 134 141 135 142 // 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 ); 141 150 142 151 $columns = $this->get_columns(); -
lockr/trunk/lockr-secure-posts.php
r1988381 r2088626 127 127 global $post; 128 128 $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 ) ) { 130 130 131 131 if ( ! session_id() ) { … … 143 143 144 144 add_action( 'wp', 'lockr_secure_post_postpass_session' ); 145 145 146 /** 146 147 * Check for hashed passwords used for protecting posts. … … 165 166 } 166 167 } 168 167 169 add_filter( 'post_password_required', 'lockr_password_form_check', 10000, 2 ); -
lockr/trunk/readme.txt
r2079642 r2088626 55 55 7. 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. 56 56 57 You're set! Start entering your keys through the Lockr config or by using our integrations with other plugins! 57 You'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 59 Be sure to check out our [docs](https://docs.lockr.io) for more details. 58 60 59 61
Note: See TracChangeset
for help on using the changeset viewer.