Skip to content

Commit

Permalink
Removing mbregex polyfill, see: voku/portable-utf8#205
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Foti <[email protected]>
  • Loading branch information
MocioF committed Mar 26, 2024
1 parent 76d7e71 commit 6ab3da2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"scrivo/highlight.php": "^9.18",
"league/uri-components": "^2.4",
"rubix/ml": "^2.0",
"rubix/tensor": "^3.0",
"zendtech/polyfill-mb-ereg": "^1.0"
"rubix/tensor": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 0 additions & 4 deletions no-unsafe-inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
* @return void
*/
function no_unsafe_inline_activate( $network_wide ) {
if ( ! function_exists( 'mb_regex_encoding' ) ) {
require_once plugin_dir_path( __FILE__ ) . 'vendor/zendtech/polyfill-mb-ereg/src/MbEreg';
require_once plugin_dir_path( __FILE__ ) . 'vendor/zendtech/polyfill-mb-ereg/src/autoload.php';
}
require_once plugin_dir_path( __FILE__ ) . 'includes/class-no-unsafe-inline-activator.php';
No_Unsafe_Inline_Activator::activate( $network_wide );
}
Expand Down

0 comments on commit 6ab3da2

Please sign in to comment.