From 37c7758c0ad4da3e262aa20bce2aa7fb2489f703 Mon Sep 17 00:00:00 2001 From: Johannes Reiter Date: Wed, 8 May 2024 13:12:17 +0200 Subject: [PATCH] Update really-simple-captcha.php --- really-simple-captcha.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/really-simple-captcha.php b/really-simple-captcha.php index 867675f..fd6b40b 100644 --- a/really-simple-captcha.php +++ b/really-simple-captcha.php @@ -20,6 +20,7 @@ class ReallySimpleCaptcha { public $char_length; public $fonts; public $tmp_dir; + public $tmp_url; public $img_size; public $bg; public $fg; @@ -48,6 +49,9 @@ public function __construct() { /* Directory temporary keeping CAPTCHA images and corresponding text files */ $this->tmp_dir = path_join( __DIR__, 'tmp' ); + /* Get the URL for the images to include in templates easy */ + $this->tmp_url = plugin_dir_url(__FILE__) . 'tmp'; + /* Array of CAPTCHA image size. Width and height */ $this->img_size = array( 72, 24 );