You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: fb-admin-menu.php
+40-40
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ function fb_notify_user_of_plugin_conflicts()
201
201
202
202
//if there are more than 1 plugins relying on Open Graph, warn the user on this plugins page
203
203
if ( $num_conflicting >= 1 ) {
204
-
fb_admin_dialog( sprintf( __( 'You have plugins installed that could potentially conflict with the Facebook plugin. Please consider disabling the following plugins on the %sPlugins Settings page%s:', 'facebook' ) . '<br />' . implode($conflicting_plugins), '<a href="plugins.php" aria-label="Plugins 0">','</a>' ), true);
204
+
fb_admin_dialog( sprintf( __( 'You have plugins installed that could potentially conflict with the Facebook plugin. Please consider disabling the following plugins on the %s:', 'facebook' ) . '<br />' . implode($conflicting_plugins), '<a href="plugins.php" aria-label="Plugins 0">' . esc_html( __( 'Plugins Settings page', 'facebook' ) ) .'</a>' ), true);
205
205
}
206
206
}
207
207
@@ -311,44 +311,44 @@ function fb_settings_page() {
echo'<p><strong>' . sprintf( esc_html( __( 'If you already have a Facebook app for this website, skip to %sStep 2%s.', 'facebook' ) ), '<a href="#step-2">','</a>' ) . '</strong></p><br>';
323
-
echo'<p>' . sprintf( esc_html( __( 'If you don\'t already have an app for this website, go to %s and click the "Create New App" button.You\'ll see a dialog like the one below.Fill this in and click "Continue".', 'facebook' ) ), '<a href="https://developers.facebook.com/apps" target="_blank">https://developers.facebook.com/apps</a>' );
echo'<p><strong>' . sprintf( esc_html( __( 'If you already have a Facebook app for this website, skip to %s.', 'facebook' ) ), '<a href="#step-2">' . esc_html( __( 'Step 2', 'facebook' ) ) .'</a>' ) . '</strong></p><br>';
323
+
echo'<p>' . sprintf( esc_html( __( 'If you don\'t already have an app for this website, go to %s and click the "Create New App" button.You\'ll see a dialog like the one below.Fill this in and click "Continue".', 'facebook' ) ), '<a href="https://developers.facebook.com/apps" target="_blank">https://developers.facebook.com/apps</a>' );
echo'<h2 id="step-2">' . esc_html__( 'Step 2: Set up the App', 'facebook' ) . '</h2>';
331
-
echosprintf( esc_html( __( 'Next, set up your app so that it looks like the settings below.Make sure you set your app\'s icon and image, too. If you already have an app and skipped Step 1, you can view your app settings by going to %s', 'facebook' ) ), '<a href="https://developers.facebook.com/apps">https://developers.facebook.com/apps</a>.</p>' );
330
+
echo'<h2 id="step-2">' . esc_html( __( 'Step 2: Set up the App', 'facebook' ) ) . '</h2>';
331
+
echosprintf( esc_html( __( 'Next, set up your app so that it looks like the settings below.Make sure you set your app\'s icon and image, too. If you already have an app and skipped Step 1, you can view your app settings by going to %s', 'facebook' ) ), '<a href="https://developers.facebook.com/apps">https://developers.facebook.com/apps</a>.</p>' );
332
332
333
-
echo'<p>Here are for some recommendations for filling this form out, based on where this plugin is installed.</p>';
333
+
echo'<p>' . esc_html( __( 'Here are for some recommendations for filling this form out, based on where this plugin is installed.', 'facebook' ) ) . '</p>';
echo'<p>' . esc_html__( 'Now, based on what you entered in Step 2, fill in the settings below and Save.Once saved, additional options will appear on this page.', 'facebook' ) . '</p>';
echo'<p>' . esc_html( __( 'Now, based on what you entered in Step 2, fill in the settings below and Save.Once saved, additional options will appear on this page.', 'facebook' ) ) . '</p>';
echo'<p>' . sprintf( esc_html( __( 'Get your App ID, Secret, and Namespace at %s. %sIf you already have a Facebook app for this website, it\'s important that you use the same information below%s.', 'facebook' ) ), '<a href="https://developers.facebook.com/apps">https://developers.facebook.com/apps</a>', '<strong>', '</strong>' ) . '</p>';
346
+
echo'<p>' . sprintf( esc_html( __( 'Get your App ID, Secret, and Namespace at %s.', 'facebook' ) ) . '<strong>' . esc_html( __( 'If you already have a Facebook app for this website, it\'s important that you use the same information below.', 'facebook' ) ) . '</strong>', '<a href="https://developers.facebook.com/apps">https://developers.facebook.com/apps</a>' ) . '</p>';
echo'<p>' . sprintf( esc_html( __( 'These settings affect Pages and Posts only.Additional Social Plugins are also available in the %sWidgets settings%s.', 'facebook' ) ), '<a href="widgets.php">','</a>' );
351
+
echo'<p>' . esc_html( __( 'These settings affect Pages and Posts only.', 'facebook' ) ) . '' . sprintf( esc_html( __( 'Additional Social Plugins are also available in the %s.', 'facebook' ) ), '<a href="widgets.php">' . esc_html( __( 'Widgets settings', 'facebook' ) ) .'</a>' );
add_settings_error('fb_options', '', "$labelhas been converted to contain only lowercase letters, dashes and underscores");
593
+
add_settings_error('fb_options', '', sprintf( __( '%s has been converted to contain only lowercase letters, dashes and underscores', 'facebook' ), $label ) );
594
594
}
595
595
return$value;
596
596
}
@@ -607,16 +607,16 @@ function fb_options_validate_plugin($array, $label_prefix, $sanitize=true) {
fb_admin_dialog( sprintf( __('You must %sconfigure the plugin%s to enable Facebook for WordPress.', 'facebook' ), '<a href="admin.php?page=facebook-settings">','</a>' ), true);
19
+
fb_admin_dialog( sprintf( __('You must %s to enable Facebook for WordPress.', 'facebook' ), '<a href="admin.php?page=facebook-settings">' . esc_html( __( 'configure the plugin', 'facebook' ) ) .'</a>' ), true);
fb_admin_dialog( sprintf( __('Facebook social publishing is enabled. %sLink your Facebook account to your WordPress account</a> to get full functionality, including adding new Posts to your Timeline.', 'facebook' ), '<a href="#" onclick="authFacebook(); return false;">' ), true);
41
+
fb_admin_dialog( __('Facebook social publishing is enabled.', 'facebook' ) . '' . sprintf( __( '%s to get full functionality, including adding new Posts to your Timeline.', 'facebook' ), '<a href="#" onclick="authFacebook(); return false;">' . esc_html( __( 'Link your Facebook account to your WordPress account', 'facebook' ) ) . '</a>' ), true);
0 commit comments