From 85a282b54bbe35e3723d55a831aa411db4cc19de Mon Sep 17 00:00:00 2001 From: Derek P Sifford Date: Tue, 29 Jan 2019 11:30:51 -0500 Subject: [PATCH] php 7.0 compatibility --- src/academic-bloggers-toolkit.php | 10 +++++----- src/php/editor-legacy.php | 14 +++++++------- src/php/editor.php | 4 ++-- src/php/frontend.php | 6 +++--- src/php/options.php | 6 +++--- src/php/utils.php | 6 +++--- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/academic-bloggers-toolkit.php b/src/academic-bloggers-toolkit.php index 312167d0..85264dbc 100644 --- a/src/academic-bloggers-toolkit.php +++ b/src/academic-bloggers-toolkit.php @@ -46,7 +46,7 @@ /** * Load plugin translations. */ -function textdomain(): void { +function textdomain() { load_plugin_textdomain( 'academic-bloggers-toolkit', false, basename( ABT_ROOT_PATH ) . '/languages' ); } add_action( 'plugins_loaded', __NAMESPACE__ . '\textdomain' ); @@ -54,7 +54,7 @@ function textdomain(): void { /** * Cleans up options during uninstall. */ -function uninstall(): void { +function uninstall() { delete_option( ABT_OPTIONS_KEY ); } register_uninstall_hook( __FILE__, __NAMESPACE__ . '\uninstall' ); @@ -64,7 +64,7 @@ function uninstall(): void { * * @link https://app.quicktype.io?share=E2qRt1Cg3TR6qmHbXDcY */ -function refactor_options(): void { +function refactor_options() { $options = get_option( ABT_OPTIONS_KEY ); if ( version_compare( ABT_VERSION, $options['VERSION'] ?? '0', '>' ) ) { // Move custom css to customizer if it exists. @@ -127,7 +127,7 @@ function add_donate_link( array $links, string $file ): array { /** * Registers all scripts/styles used by this plugin. */ -function register_scripts(): void { +function register_scripts() { $deps = get_dependencies(); // @@ -195,7 +195,7 @@ function register_scripts(): void { /** * Adds an ajax nonce to pages that require it. */ -function ajax_nonce(): void { +function ajax_nonce() { ?>