Skip to content

Commit

Permalink
Super cache: fix a trailing div (#38023)
Browse files Browse the repository at this point in the history
* Fix trailing div

* changelog

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9660174367

Upstream-Ref: Automattic/jetpack@c05ce7b
  • Loading branch information
donnchawp authored and matticbot committed Jun 25, 2024
1 parent 4915dba commit dde1a99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -2379,6 +2379,7 @@ function wpsc_check_advanced_cache() {
echo '<p><strong>' .
__( 'If you need support for this problem contact your hosting provider.', 'wp-super-cache' ),
'</strong></p>';
echo '</div>';
} elseif ( ! is_writeable_ACLSafe( $wpsc_advanced_cache_filename ) ) {
echo '<div class="notice notice-error"><h2>' . __( 'Warning', 'wp-super-cache' ) . "! <em>" . sprintf( __( '%s/advanced-cache.php</em> cannot be updated.', 'wp-super-cache' ), WP_CONTENT_DIR ) . "</h2>";
echo '<ol>';
Expand All @@ -2391,8 +2392,8 @@ function wpsc_check_advanced_cache() {
echo "<li>" . sprintf( __( 'Refresh this page to update <em>%s/advanced-cache.php</em>', 'wp-super-cache' ), WP_CONTENT_DIR ) . "</li></ol>";
echo sprintf( __( 'If that doesn&#8217;t work, make sure the file <em>%s/advanced-cache.php</em> doesn&#8217;t exist:', 'wp-super-cache' ), WP_CONTENT_DIR ) . "<ol>";
echo "</ol>";
echo '</div>';
}
echo "</div>";
return false;
}
return true;
Expand Down

0 comments on commit dde1a99

Please sign in to comment.