@@ -182,7 +182,7 @@ public function print_configure_view()
182
182
echo '<ul id="publishpress-authors-settings-tabs" class="nav-tab-wrapper"> ' ;
183
183
foreach ($ tabs as $ tabLink => $ tabLabel ) {
184
184
echo '<li class="nav-tab ' . ($ tabLink === '#ppma-tab-general ' ? 'nav-tab-active ' : '' ) . '"> ' ;
185
- echo '<a href=" ' . $ tabLink . '"> ' . $ tabLabel . '</a> ' ;
185
+ echo '<a href=" ' . esc_url ( $ tabLink) . '"> ' . esc_html ( $ tabLabel) . '</a> ' ;
186
186
echo '</li> ' ;
187
187
}
188
188
echo '</ul> ' ;
@@ -203,12 +203,11 @@ public function print_configure_view()
203
203
continue ;
204
204
}
205
205
206
- echo sprintf ('<h3>%s</h3> ' , $ mod_data ->title );
207
- echo sprintf ('<p>%s</p> ' , $ mod_data ->short_description );
206
+ echo sprintf ('<h3>%s</h3> ' , esc_html ( $ mod_data ->title ) );
207
+ echo sprintf ('<p>%s</p> ' , esc_html ( $ mod_data ->short_description ) );
208
208
209
- echo '<input name="multiple_authors_module_name[]" type="hidden" value=" ' . esc_attr (
210
- $ mod_data ->name
211
- ) . '" /> ' ;
209
+ echo '<input name="multiple_authors_module_name[]" type="hidden" value=" '
210
+ . esc_attr ($ mod_data ->name ) . '" /> ' ;
212
211
213
212
$ legacyPlugin ->$ slug ->print_configure_view ();
214
213
}
@@ -228,16 +227,16 @@ public function print_configure_view()
228
227
229
228
<?php if ($ featuresCount > 0 ) : ?>
230
229
<div id="modules-wrapper">
231
- <h3><?php echo __ ('Features ' , 'publishpress-authors ' ); ?> </h3>
232
- <p><?php echo __ (
230
+ <h3><?php echo esc_html__ ('Features ' , 'publishpress-authors ' ); ?> </h3>
231
+ <p><?php echo esc_html__ (
233
232
'Feel free to select only the features you need. ' ,
234
233
'publishpress-authors '
235
234
); ?> </p>
236
235
237
236
<table class="form-table">
238
237
<tbody>
239
238
<tr>
240
- <th scope="row"><?php echo __ (
239
+ <th scope="row"><?php echo esc_html__ (
241
240
'Enabled features ' ,
242
241
'publishpress-authors '
243
242
); ?> </th>
@@ -254,7 +253,7 @@ public function print_configure_view()
254
253
$ mod_data ->slug
255
254
); ?> ]" <?php echo ($ mod_data ->options ->enabled == 'on ' ) ? "checked= \"checked \"" : "" ; ?>
256
255
type="checkbox">
257
- <?php echo $ mod_data ->title ; ?>
256
+ <?php echo esc_html ( $ mod_data ->title ) ; ?>
258
257
</label>
259
258
<br>
260
259
<?php endforeach ; ?>
@@ -263,9 +262,8 @@ public function print_configure_view()
263
262
</tbody>
264
263
</table>
265
264
266
- <?php echo '<input name="multiple_authors_module_name[]" type="hidden" value=" ' . esc_attr (
267
- $ this ->module ->name
268
- ) . '" /> ' ; ?>
265
+ <?php echo '<input name="multiple_authors_module_name[]" type="hidden" value=" '
266
+ . esc_attr ($ this ->module ->name ) . '" /> ' ; ?>
269
267
</div>
270
268
<?php endif ; ?>
271
269
@@ -280,16 +278,16 @@ public function print_configure_view()
280
278
<?php
281
279
$ banners = new PublishPress \WordPressBanners \BannersMain ;
282
280
$ banners ->pp_display_banner (
283
- __ ( 'Recommendations for you ' , 'publishpress-authors ' ),
284
- __ ( 'Showcase your Authors with PublishPress Blocks ' , 'publishpress-authors ' ),
281
+ esc_html__ ( 'Recommendations for you ' , 'publishpress-authors ' ),
282
+ esc_html__ ( 'Showcase your Authors with PublishPress Blocks ' , 'publishpress-authors ' ),
285
283
array (
286
- __ ( 'PublishPress Blocks is a free plugin with full support for PublishPress Authors. ' , 'publishpress-authors ' ),
287
- __ ( 'Install this plugin to showcase content by your Authors. ' , 'publishpress-authors ' ),
288
- __ ( 'Use the Content Display block to show your posts in many beautiful layouts. ' , 'publishpress-authors ' ),
289
- __ ( 'PublishPress Blocks has over 20 extra Gutenberg blocks including accordions, galleries, tables, and more. ' , 'publishpress-authors ' ),
284
+ esc_html__ ( 'PublishPress Blocks is a free plugin with full support for PublishPress Authors. ' , 'publishpress-authors ' ),
285
+ esc_html__ ( 'Install this plugin to showcase content by your Authors. ' , 'publishpress-authors ' ),
286
+ esc_html__ ( 'Use the Content Display block to show your posts in many beautiful layouts. ' , 'publishpress-authors ' ),
287
+ esc_html__ ( 'PublishPress Blocks has over 20 extra Gutenberg blocks including accordions, galleries, tables, and more. ' , 'publishpress-authors ' ),
290
288
),
291
- admin_url ( 'plugin-install.php?s=publishpress-advg-install&tab=search&type=term ' ),
292
- __ ( 'Click here to install PublishPress Blocks ' , 'publishpress-authors ' ),
289
+ esc_url ( admin_url ( 'plugin-install.php?s=publishpress-advg-install&tab=search&type=term ' ) ),
290
+ esc_html__ ( 'Click here to install PublishPress Blocks ' , 'publishpress-authors ' ),
293
291
'install-blocks.jpg '
294
292
);
295
293
?>
0 commit comments