Plugin Directory

Changeset 3275086


Ignore:
Timestamp:
04/16/2025 07:21:23 PM (11 months ago)
Author:
bobintercom
Message:

Deploy version 3.0.2

Location:
intercom
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • intercom/tags/3.0.2/bootstrap.php

    r3272725 r3275086  
    66Author: Intercom
    77Author URI: https://www.intercom.io
    8 Version: 3.0.1
     8Version: 3.0.2
    99 */
    1010
    11 define('INTERCOM_PLUGIN_VERSION', '3.0.1');
     11define('INTERCOM_PLUGIN_VERSION', '3.0.2');
    1212
    1313require_once __DIR__ . '/vendor/autoload.php';
     
    407407    $result = $this->mergeConstants(apply_filters("intercom_settings", $settings));
    408408    $result['installation_type'] = 'wordpress';
    409     $result['integration_version'] = INTERCOM_PLUGIN_VERSION;
     409    $result['installation_version'] = INTERCOM_PLUGIN_VERSION;
    410410    return $result;
    411411  }
  • intercom/tags/3.0.2/readme.txt

    r3272725 r3275086  
    66Requires PHP: 7.2
    77License: Apache 2.0
    8 Stable tag: 3.0.1
     8Stable tag: 3.0.2
    99
    1010Official Intercom WordPress plugin: Engage visitors in real time, power growth with AI, and convert leads into loyal customers.
     
    33333. Intercom widget used by customers to communicate with the business widget.png
    3434== Changelog ==
     35= 3.0.2 =
     36
     37https://github.com/intercom/intercom-wordpress/pull/131
     38* Updated version attribute to avoid it getting sent in the user data.
     39
    3540= 3.0.1 =
    3641
     
    4954
    5055== Upgrade Notice ==
     56= 3.0.1 =
     57Updated version attribute name to avoid setting it as part of user data.
    5158
    5259= 3.0.1 =
  • intercom/tags/3.0.2/test/SnippetSettingsTest.php

    r3272725 r3275086  
    2727  {
    2828    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"));
    29     $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     29    $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    3030  }
    3131  public function testJSONRenderingWithIdentityVerification()
     
    3838    );
    3939    $jwt = JWT::encode($jwt_data, "s3cre7", 'HS256');
    40     $this->assertEquals('{"app_id":"bar","intercom_user_jwt":"'.$jwt.'","installation_type":"wordpress","integration_version":"' . INTERCOM_PLUGIN_VERSION . '"}', $snippet_settings->json());
     40    $this->assertEquals('{"app_id":"bar","intercom_user_jwt":"'.$jwt.'","installation_type":"wordpress","installation_version":"' . INTERCOM_PLUGIN_VERSION . '"}', $snippet_settings->json());
    4141  }
    4242  public function testJSONRenderingWithIdentityVerificationAndNoSecret()
    4343  {
    4444    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"), NULL, new FakeWordPressUserForSnippetTest());
    45     $this->assertEquals("{\"app_id\":\"bar\",\"email\":\"foo@bar.com\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     45    $this->assertEquals("{\"app_id\":\"bar\",\"email\":\"foo@bar.com\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    4646  }
    4747  public function testInstallationType()
    4848  {
    4949    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"));
    50     $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     50    $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    5151  }
    5252  public function testIclLanguageConstant()
     
    5454    define('ICL_LANGUAGE_CODE', 'fr');
    5555    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"));
    56     $this->assertEquals("{\"app_id\":\"bar\",\"language_override\":\"fr\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     56    $this->assertEquals("{\"app_id\":\"bar\",\"language_override\":\"fr\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    5757  }
    5858
  • intercom/tags/3.0.2/test/SnippetTest.php

    r3272725 r3275086  
    2525</script>
    2626<script data-cfasync="false">
    27   window.intercomSettings = {"app_id":"foo","name":"Nikola Tesla","installation_type":"wordpress","integration_version":"3.0.1"};
     27  window.intercomSettings = {"app_id":"foo","name":"Nikola Tesla","installation_type":"wordpress","installation_version":"3.0.2"};
    2828</script>
    2929<script data-cfasync="false">(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/foo';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
  • intercom/trunk/bootstrap.php

    r3272725 r3275086  
    66Author: Intercom
    77Author URI: https://www.intercom.io
    8 Version: 3.0.1
     8Version: 3.0.2
    99 */
    1010
    11 define('INTERCOM_PLUGIN_VERSION', '3.0.1');
     11define('INTERCOM_PLUGIN_VERSION', '3.0.2');
    1212
    1313require_once __DIR__ . '/vendor/autoload.php';
     
    407407    $result = $this->mergeConstants(apply_filters("intercom_settings", $settings));
    408408    $result['installation_type'] = 'wordpress';
    409     $result['integration_version'] = INTERCOM_PLUGIN_VERSION;
     409    $result['installation_version'] = INTERCOM_PLUGIN_VERSION;
    410410    return $result;
    411411  }
  • intercom/trunk/readme.txt

    r3272725 r3275086  
    66Requires PHP: 7.2
    77License: Apache 2.0
    8 Stable tag: 3.0.1
     8Stable tag: 3.0.2
    99
    1010Official Intercom WordPress plugin: Engage visitors in real time, power growth with AI, and convert leads into loyal customers.
     
    33333. Intercom widget used by customers to communicate with the business widget.png
    3434== Changelog ==
     35= 3.0.2 =
     36
     37https://github.com/intercom/intercom-wordpress/pull/131
     38* Updated version attribute to avoid it getting sent in the user data.
     39
    3540= 3.0.1 =
    3641
     
    4954
    5055== Upgrade Notice ==
     56= 3.0.1 =
     57Updated version attribute name to avoid setting it as part of user data.
    5158
    5259= 3.0.1 =
  • intercom/trunk/test/SnippetSettingsTest.php

    r3272725 r3275086  
    2727  {
    2828    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"));
    29     $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     29    $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    3030  }
    3131  public function testJSONRenderingWithIdentityVerification()
     
    3838    );
    3939    $jwt = JWT::encode($jwt_data, "s3cre7", 'HS256');
    40     $this->assertEquals('{"app_id":"bar","intercom_user_jwt":"'.$jwt.'","installation_type":"wordpress","integration_version":"' . INTERCOM_PLUGIN_VERSION . '"}', $snippet_settings->json());
     40    $this->assertEquals('{"app_id":"bar","intercom_user_jwt":"'.$jwt.'","installation_type":"wordpress","installation_version":"' . INTERCOM_PLUGIN_VERSION . '"}', $snippet_settings->json());
    4141  }
    4242  public function testJSONRenderingWithIdentityVerificationAndNoSecret()
    4343  {
    4444    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"), NULL, new FakeWordPressUserForSnippetTest());
    45     $this->assertEquals("{\"app_id\":\"bar\",\"email\":\"foo@bar.com\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     45    $this->assertEquals("{\"app_id\":\"bar\",\"email\":\"foo@bar.com\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    4646  }
    4747  public function testInstallationType()
    4848  {
    4949    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"));
    50     $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     50    $this->assertEquals("{\"app_id\":\"bar\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    5151  }
    5252  public function testIclLanguageConstant()
     
    5454    define('ICL_LANGUAGE_CODE', 'fr');
    5555    $snippet_settings = new IntercomSnippetSettings(array("app_id" => "bar"));
    56     $this->assertEquals("{\"app_id\":\"bar\",\"language_override\":\"fr\",\"installation_type\":\"wordpress\",\"integration_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
     56    $this->assertEquals("{\"app_id\":\"bar\",\"language_override\":\"fr\",\"installation_type\":\"wordpress\",\"installation_version\":\"" . INTERCOM_PLUGIN_VERSION . "\"}", $snippet_settings->json());
    5757  }
    5858
  • intercom/trunk/test/SnippetTest.php

    r3272725 r3275086  
    2525</script>
    2626<script data-cfasync="false">
    27   window.intercomSettings = {"app_id":"foo","name":"Nikola Tesla","installation_type":"wordpress","integration_version":"3.0.1"};
     27  window.intercomSettings = {"app_id":"foo","name":"Nikola Tesla","installation_type":"wordpress","installation_version":"3.0.2"};
    2828</script>
    2929<script data-cfasync="false">(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/foo';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
Note: See TracChangeset for help on using the changeset viewer.