Skip to content
Snippets Groups Projects
Commit 39f0948b authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'bump-wp-compat' into 'master'

Bump WP compat

See merge request !21
parents 2d23c2c2 f4c434f1
Branches
No related tags found
1 merge request!21Bump WP compat
Pipeline #8170 passed
......@@ -3,7 +3,7 @@
**Donate link:** http://www.thinkoomph.com/plugins-modules/external-permalinks-redux/
**Tags:** link, redirect, external link, permalink
**Requires at least:** 3.0
**Tested up to:** 6.0
**Tested up to:** 6.8
**Stable tag:** 1.3.2
**Requires PHP:** 5.2
**License:** GPLv2 or later
......
......@@ -24,9 +24,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package External_Permalinks_Redux
*
* @phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed
*/
// Include block-editor class.
// phpcs:ignore Modernize.FunctionCalls.Dirname.FileConstant
require_once dirname( __FILE__ ) . '/inc/class-external-permalinks-redux-block-editor.php';
/**
......
......@@ -129,11 +129,13 @@ class External_Permalinks_Redux_Block_Editor {
return;
}
// phpcs:ignore Modernize.FunctionCalls.Dirname.FileConstant
$asset_data = require_once dirname( dirname( __FILE__ ) ) . '/assets/build/index.asset.php';
$asset_handle = 'external-permalinks-redux';
wp_enqueue_script(
$asset_handle,
// phpcs:ignore Modernize.FunctionCalls.Dirname.FileConstant
plugins_url( 'assets/build/index.js', dirname( __FILE__ ) ),
$asset_data['dependencies'],
$asset_data['version'],
......@@ -156,6 +158,7 @@ class External_Permalinks_Redux_Block_Editor {
wp_set_script_translations(
$asset_handle,
'external-permalinks-redux',
// phpcs:ignore Modernize.FunctionCalls.Dirname.FileConstant
dirname( dirname( __FILE__ ) ) . '/languages'
);
}
......
# Copyright (C) 2022 Erick Hitter & Oomph, Inc.
# Copyright (C) 2025 Erick Hitter & Oomph, Inc.
# This file is distributed under the same license as the External Permalinks Redux package.
msgid ""
msgstr ""
"Project-Id-Version: External Permalinks Redux 1.3.2\n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/external-permalinks-redux\n"
"POT-Creation-Date: 2022-06-25 20:20:40+00:00\n"
"POT-Creation-Date: 2025-07-03 22:54:33+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: en\n"
......
......@@ -3,7 +3,7 @@ Contributors: ethitter, thinkoomph
Donate link: http://www.thinkoomph.com/plugins-modules/external-permalinks-redux/
Tags: link, redirect, external link, permalink
Requires at least: 3.0
Tested up to: 6.0
Tested up to: 6.8
Stable tag: 1.3.2
Requires PHP: 5.2
License: GPLv2 or later
......
......@@ -14,6 +14,7 @@ if ( ! $_tests_dir ) {
}
if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?" . PHP_EOL; // WPCS: XSS ok.
exit( 1 );
}
......@@ -25,6 +26,7 @@ require_once $_tests_dir . '/includes/functions.php';
* Manually load the plugin being tested.
*/
function epr__manually_load_plugin() {
// phpcs:ignore Modernize.FunctionCalls.Dirname.FileConstant
require dirname( dirname( __FILE__ ) ) . '/external-permalinks-redux.php';
}
tests_add_filter( 'muplugins_loaded', 'epr__manually_load_plugin' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment