Exemplo n.º 1
0
 /**
  * Check that the stamp is valid between the files and the database
  * Calling action/hook "wpbase/checksum/synchronize" if not valid
  */
 public static function validate()
 {
     $stamp = get_option('wpbase_checksum', '');
     if (!ChecksumHandler::is_valid($stamp)) {
         do_action('wpbase/checksum/synchronize');
     }
 }