diff --git a/assets/js/admin-distributed-post.js b/assets/js/admin-distributed-post.js index dc1eb3074..9d0ae17ed 100755 --- a/assets/js/admin-distributed-post.js +++ b/assets/js/admin-distributed-post.js @@ -2,12 +2,14 @@ import '../css/admin-distributed-post.css'; import jQuery from 'jquery'; +const $ = jQuery; + const openLinks = document.querySelectorAll( '.open-distributor-help' ); const helpLink = document.getElementById( 'contextual-help-link' ); const distributorTab = document.querySelector( '#tab-link-distributer a' ); for ( let i = 0; i < openLinks.length; i++ ) { - jQuery( openLinks[ i ] ).on( 'click', () => { + $( openLinks[ i ] ).on( 'click', () => { helpLink.click(); distributorTab.click(); } ); diff --git a/includes/classes/ExternalConnections/WordPressExternalConnection.php b/includes/classes/ExternalConnections/WordPressExternalConnection.php index 8c3c431e3..06d56d06a 100644 --- a/includes/classes/ExternalConnections/WordPressExternalConnection.php +++ b/includes/classes/ExternalConnections/WordPressExternalConnection.php @@ -17,14 +17,14 @@ class WordPressExternalConnection extends ExternalConnection { /** - * Connection slug + * Connection slug. * * @var string */ public static $slug = 'wp'; /** - * Connection pretty label + * Connection pretty label. * * This is to represent the authentication method, * not the connection type. This value was previously @@ -44,7 +44,7 @@ class WordPressExternalConnection extends ExternalConnection { public static $auth_handler_class = '\Distributor\Authentications\WordPressBasicAuth'; /** - * REST API namespace + * REST API namespace. * * @var string */