From 6372e454198ed7a1a792b5bfd286af1178ae7d63 Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 27 Aug 2019 21:23:41 +0000 Subject: Security and bugs --- postman-smtp.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'postman-smtp.php') diff --git a/postman-smtp.php b/postman-smtp.php index 674392d..07454ed 100644 --- a/postman-smtp.php +++ b/postman-smtp.php @@ -41,9 +41,9 @@ if ( ! defined( 'ABSPATH' ) ) { * DO some check and Start Postman */ -define( 'POST_BASE', __FILE__ ); -define( 'POST_PATH', __DIR__ ); -define( 'POST_URL', plugins_url('', POST_BASE ) ); +define( 'POST_SMTP_BASE', __FILE__ ); +define( 'POST_SMTP_PATH', __DIR__ ); +define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) ); define( 'POST_SMTP_VER', '2.0.4' ); $postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) ); @@ -60,7 +60,7 @@ if ( $postman_smtp_exist || $required_php_version ) { add_action( 'admin_notices', 'post_smtp_plugin_admin_notice_version' ); } } else { - post_start( memory_get_usage() ); + post_smtp_start( memory_get_usage() ); } @@ -121,7 +121,7 @@ add_action( 'admin_footer', 'post_dismiss_not_configured' ); * * @param mixed $startingMemory */ -function post_start( $startingMemory ) { +function post_smtp_start( $startingMemory ) { post_setupPostman(); PostmanUtils::logMemoryUse( $startingMemory, 'Postman' ); } -- cgit v1.2.3