PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/widgets/customizer-utils.js +4 -4 13.7.216.3-a.1 View file →
@@ -1,5 +1,5 @@
1 -/* global wp, gapi, FB, twttr, PaypalExpressCheckout */
1 +/* global gapi, FB, twttr, PaypalExpressCheckout */
2 2
3 3 /**
4 4 * Utilities to work with widgets in Customizer.
5 5 */
@@ -5,9 +5,9 @@
5 5 */
6 6
7 7 /**
8 8 * Checks whether this Customizer supports partial widget refresh.
9 - * @returns {boolean}
9 + * @return {boolean}
10 10 */
11 11 wp.customizerHasPartialWidgetRefresh = function () {
12 12 return (
13 13 'object' === typeof wp &&
@@ -21,9 +21,9 @@
21 21 /**
22 22 * Verifies that the placed widget ID contains the widget name.
23 23 * @param {object} placement
24 24 * @param {string} widgetName
25 - * @returns {*|boolean}
25 + * @return {*|boolean}
26 26 */
27 27 wp.isJetpackWidgetPlaced = function ( placement, widgetName ) {
28 28 return placement.partial.widgetId && 0 === placement.partial.widgetId.indexOf( widgetName );
29 29 };
@@ -89,9 +89,9 @@
89 89 var buttonId = $( '.jetpack-simple-payments-button', placement.container )
90 90 .attr( 'id' )
91 91 .replace( '_button', '' );
92 92 PaypalExpressCheckout.renderButton( null, null, buttonId, null );
93 - } catch ( e ) {
93 + } catch {
94 94 // PaypalExpressCheckout may fail.
95 95 // For the same usage, see also:
96 96 // https://github.com/Automattic/jetpack/blob/6c1971e6bed7d3df793392a7a58ffe0afaeeb5fe/modules/simple-payments/simple-payments.php#L111
97 97 }