Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter skellner

    (@skellner)

    Apologies. I realized I shared the incorrect patch from one of our earlier attempts that didn’t work. Below is the actual patch that we’ve rolled out to our sites that is working…

    Basically we’re just hard-coding the plugin version number rather than relying on get_plugin_data()

    --- acf-icomoon.php     2024-10-11 08:20:32.000000000 -0400
    +++ acf-icomoon-patched.php 2024-11-22 13:49:14.363537900 -0500
    @@ -28,9 +28,8 @@
    if(!function_exists('get_plugin_data')){
    require_once(ABSPATH . 'wp-admin/includes/plugin.php');
    }
    -$plugin_data = get_plugin_data(__FILE__);

    -define("ACFICOMOON_VERSION", $plugin_data['Version']);
    +define("ACFICOMOON_VERSION", '4.0.10');
    define("ACFICOMOON_DIR", plugin_dir_path(__FILE__));
    define("ACFICOMOON_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
    define("ACFICOMOON_STYLESHEET_DIR", get_stylesheet_directory());
    • This reply was modified 3 days, 16 hours ago by skellner.
Viewing 1 replies (of 1 total)