Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: PHPUnit
jobs:
build-test:
if: contains(github.event.pull_request.labels.*.name, 'run tests')
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
WP_MULTISITE: ${{ matrix.multisite }}
strategy:
Expand Down
11 changes: 0 additions & 11 deletions classes/helpers/FrmAppHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ class FrmAppHelper {
*/
private static $included_svg = false;

/**
* @var array Keys are locations and values are true or false.
*/
private static $localized_script_locations = array();

/**
* @since 1.07.02
*
Expand Down Expand Up @@ -3352,10 +3347,6 @@ public static function load_font_style() {
* @return void
*/
public static function localize_script( $location ) {
if ( ! empty( self::$localized_script_locations[ $location ] ) ) {
return;
}

global $wp_scripts, $wp_version;

$script_strings = array(
Expand Down Expand Up @@ -3459,8 +3450,6 @@ public static function localize_script( $location ) {
wp_localize_script( 'formidable_admin', 'frm_admin_js', $admin_script_strings );
}
}//end if

self::$localized_script_locations[ $location ] = true;
}

/**
Expand Down
5 changes: 0 additions & 5 deletions classes/helpers/FrmFormsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1457,11 +1457,6 @@ public static function get_template_install_link( $template, $args ) {
'href' => 'rel',
'atts' => '',
);
} elseif ( self::plan_is_allowed( $args ) ) {
$link = array(
'url' => FrmAppHelper::admin_upgrade_link( 'addons', 'account/downloads/' ) . '&utm_content=' . $template['slug'],
'label' => __( 'Renew', 'formidable' ),
);
} else {
$link = array(
'url' => $args['pricing'],
Expand Down