Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/widgets/flickr
File: widget.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Jetpack_Flickr_Widget frontend widget output.
[2] Fix | Delete
*
[3] Fix | Delete
* @html-template Jetpack_Flickr_Widget::widget
[4] Fix | Delete
* @package automattic/jetpack
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit( 0 );
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
[12] Fix | Delete
[13] Fix | Delete
?>
[14] Fix | Delete
<!-- Start of Flickr Widget -->
[15] Fix | Delete
<div class="flickr-wrapper flickr-size-<?php echo esc_attr( $instance['flickr_image_size'] ); ?>">
[16] Fix | Delete
<div class="flickr-images">
[17] Fix | Delete
<?php echo $photos; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaping handled in Jetpack_Flickr_Widget class. ?>
[18] Fix | Delete
</div>
[19] Fix | Delete
[20] Fix | Delete
<?php if ( isset( $flickr_home ) ) { ?>
[21] Fix | Delete
<a class="flickr-more" href="<?php echo esc_url( $flickr_home, array( 'http', 'https' ) ); ?>">
[22] Fix | Delete
<?php esc_html_e( 'More Photos', 'jetpack' ); ?>
[23] Fix | Delete
</a>
[24] Fix | Delete
<?php } ?>
[25] Fix | Delete
</div>
[26] Fix | Delete
<!-- End of Flickr Widget -->
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function