PluginProbe
Parse.ly / 3.24.2
Parse.ly v3.24.2
3.24.2 3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 All 106 releases
← All changes | src/js/admin-settings.ts +11 -11 3.19.2 → 3.24.2 View file →
@@ -70,9 +70,9 @@
70 70 imageFrame.open();
71 71 }
72 72
73 73 /**
74 - * Adds the necessary event handlers to the Content Helper tab.
74 + * Adds the necessary event handlers to the Content Intelligence tab.
75 75 *
76 76 * @since 3.16.0
77 77 */
78 78 function addContentHelperTabEventHandlers(): void {
@@ -88,11 +88,11 @@
88 88 'input#content_helper_excerpt_suggestions_enabled, ' +
89 89 'input#content_helper_traffic_boost_enabled'
90 90 );
91 91
92 - // Selector for all fieldsets in the Content Helper section.
92 + // Selector for all fieldsets in the Content Intelligence section.
93 93 const fieldsets = document.querySelectorAll(
94 - 'div.content-helper-section fieldset'
94 + 'div.content-intelligence-section fieldset'
95 95 );
96 96
97 97 // Event handlers.
98 98 enableAllFormFieldsOnSubmit();
@@ -219,9 +219,9 @@
219 219 */
220 220 function enableAllFormFieldsOnSubmit(): void {
221 221 document.querySelector( '.wp-admin form[name="parsely"]' )
222 222 ?.addEventListener( 'submit', (): void => {
223 - const baseSelector = '.wp-admin .content-helper-section fieldset';
223 + const baseSelector = '.wp-admin .content-intelligence-section fieldset';
224 224
225 225 document.querySelectorAll( `${ baseSelector }[disabled]` )
226 226 .forEach( ( fieldset: Element ): void => {
227 227 // Style the whole setting table row as disabled.
@@ -242,9 +242,9 @@
242 242 }
243 243 }
244 244
245 245 /**
246 - * Displays any messages needed under the Content Helper section.
246 + * Displays any messages needed under the Content Intelligence section.
247 247 *
248 248 * @since 3.19.0
249 249 */
250 250 async function displayContentHelperSectionMessages(): Promise<void> {
@@ -269,9 +269,9 @@
269 269 console.error( err ); // eslint-disable-line no-console
270 270
271 271 if ( err instanceof ContentHelperError ) {
272 272 if ( ContentHelperErrorCode.PluginSettingsApiSecretNotSet === err.code ) {
273 - message = sprintf( '<p><strong>%s</strong></p>', escapeHTML( __( 'All Content Helper AI functionality is disabled because an API Secret has not been set.', 'wp-parsely' ) ) );
273 + message = sprintf( '<p><strong>%s</strong></p>', escapeHTML( __( 'All Content Intelligence AI functionality is disabled because an API Secret has not been set.', 'wp-parsely' ) ) );
274 274 }
275 275 }
276 276 } finally {
277 277 if ( authResponse ) {
@@ -276,15 +276,15 @@
276 276 } finally {
277 277 if ( authResponse ) {
278 278 if ( 200 !== authResponse.api.code ) {
279 279 const requestAccessLink = sprintf( '<a href="%1$s" target="_blank" rel="noopener">%2$s</a>', 'https://wpvip.com/content-helper/#content-helper-form', __( 'Request access here', 'wp-parsely' ) );
280 - /* translators: %s: Link to request access to Content Helper AI functionality. */
281 - const messageWithAccessLink = sprintf( escapeHTML( __( 'All Content Helper AI functionality is disabled for this website. %s.', 'wp-parsely' ) ), requestAccessLink );
280 + /* translators: %s: Link to request access to Content Intelligence AI functionality. */
281 + const messageWithAccessLink = sprintf( escapeHTML( __( 'All Content Intelligence AI functionality is disabled for this website. %s.', 'wp-parsely' ) ), requestAccessLink );
282 282 message = sprintf( '<p><strong>%s</strong></p>', messageWithAccessLink );
283 283 } else if ( 200 === authResponse.api.code && 200 !== authResponse.traffic_boost.code ) {
284 284 const contactSupportLink = sprintf( '<a href="%1$s">%2$s</a>', 'mailto:[email protected]', '[email protected]' );
285 - /* translators: %s: Link to request access to Content Helper AI functionality. */
286 - const messageWithAccessLink = sprintf( escapeHTML( __( 'Traffic Boost functionality is disabled for this website. To enable it, contact %s.', 'wp-parsely' ) ), contactSupportLink );
285 + /* translators: %s: Link to request access to Content Intelligence AI functionality. */
286 + const messageWithAccessLink = sprintf( escapeHTML( __( 'Engagement Boost functionality is disabled for this website. To enable it, contact %s.', 'wp-parsely' ) ), contactSupportLink );
287 287 message = sprintf( '<p><strong>%s</strong></p>', messageWithAccessLink );
288 288 }
289 289 }
290 290
@@ -291,9 +291,9 @@
291 291 if ( message ) {
292 292 const div = document.createElement( 'div' );
293 293 div.className = 'content-helper-message notice notice-error';
294 294 div.innerHTML = message;
295 - const contentHelperSection = document.querySelector( '.content-helper-section' );
295 + const contentHelperSection = document.querySelector( '.content-intelligence-section' );
296 296 if ( contentHelperSection ) {
297 297 contentHelperSection.insertBefore( div, contentHelperSection.firstChild );
298 298 }
299 299 }