Skip to content

Commit

Permalink
modified: changelog.txt
Browse files Browse the repository at this point in the history
	modified:   functions.php
	modified:   lib/hooks.php
	modified:   plugins/plugins-presentation.php
	modified:   searchform.php
	modified:   style.css
  • Loading branch information
tenman committed Aug 31, 2020
1 parent c373862 commit 5515c76
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 7 deletions.
18 changes: 18 additions & 0 deletions changelog.txt
@@ -1,4 +1,22 @@
Changelog -----------------------------------
version:1.539

Overview of Changes
WordPress 5.5 relate changes
Fixed $comment->comment_type return empty to 'comment'

Modified
Themes Team new required.
get_template_directory_uri() must be escaped when output as part of a link or image source. Use esc_url() for link attributes. A manual review is needed.

add_filter( 'template_directory_uri', 'esc_url', 11 );

Files Modified

Description of Code Changes
please see https://themes.trac.wordpress.org/changeset?old_path=raindrops/1.538&new_path=raindrops/1.539
-----------------------------------------------Changelog -----------------------------------
Changelog -----------------------------------
version:1.538

Overview of Changes
Expand Down
6 changes: 4 additions & 2 deletions functions.php
Expand Up @@ -10,6 +10,7 @@
}
do_action( 'raindrops_before' );


/**
* move from hooks.php
* and change from load_textdomain( ) to load_theme_text_domain( )
Expand Down Expand Up @@ -1027,7 +1028,7 @@ function raindrops_add_body_class( $classes ) {

function raindrops_comment( $comment, $args, $depth ) {

if ( '' == $comment->comment_type ) {
if ( 'comment' == $comment->comment_type ) {
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<div id="comment-<?php comment_ID(); ?>">
Expand Down Expand Up @@ -1066,6 +1067,7 @@ function raindrops_comment( $comment, $args, $depth ) {
<div class="comment-body">
<?php
comment_text();

?>
</div>
<div class="reply">
Expand Down Expand Up @@ -2391,7 +2393,7 @@ function raindrops_embed_css() {
$css .= '.entry-content > .is-regular-text{ max-width:100%;}';
$css .= '.entry-content > p:not(.d-tate):not(.trancate){ max-width:100%;}';
$css .= '.entry-content > p.aligncenter{ max-width:100%;}';
$css .= '.entry-content .aligncenter{ max-width:100%;}';
$css .= '.entry-content .aligncenter:not(.wp-block-cover){ max-width:100%;}';
$css .= '.entry-content .fit-p{ max-width:100%;}';
$css .= '.entry-content ul,ol{ max-width:100%;}';
$css .= '}';
Expand Down
5 changes: 5 additions & 0 deletions lib/hooks.php
Expand Up @@ -474,6 +474,11 @@ function raindrops_theme_setup() {
* @since 1.532
*/
add_filter( 'tiny_mce_before_init', 'raindrops_remove_verify_html', 10, 2 );
/**
* @since 1.539
*/
add_filter( 'template_directory_uri', 'esc_url', 11 );
add_filter( 'stylesheet_directory_uri', 'esc_url', 11 );

}
}
Expand Down
7 changes: 6 additions & 1 deletion plugins/plugins-presentation.php
Expand Up @@ -2947,12 +2947,17 @@ function raindrops_gutenberg_front_end_style() {
margin-right:-100%;
padding-left:100%;
padding-right:100%;
max-width:none;
background-attachment:fixed;
display:flex;
align-items: center;
justify-content: center;
}

.enable-align-wide .wp-block-cover.alignfull .wp-block-cover__inner-container{
width:100%;
}

.enable-align-wide .wp-block-cover.alignfull:not([style]){
/* @1.526 Todo */
height:30vw;
Expand Down Expand Up @@ -3494,7 +3499,7 @@ function raindrops_gutenberg_front_end_style() {
}

.entry-content .wp-block-column {
flex:1
flex:1 1 auto;
}
.entry-content .wp-block-column{
margin-left:.5em;
Expand Down
6 changes: 3 additions & 3 deletions searchform.php
Expand Up @@ -16,7 +16,7 @@
?>
<form method="get" name="searchform" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="searchform">
<label class="screen-reader-text" for="s"><?php esc_attr_e('Search for:', 'raindrops');?></label>
<label class="screen-reader-text" for="s"><?php esc_html_e('Search for:', 'raindrops');?></label>
<input type="search" value="<?php the_search_query(); ?>" pattern="^[^(<|>)]+$" title="<?php esc_attr_e( 'must not contain html tags', 'raindrops' ); ?>" placeholder="<?php esc_attr_e( 'Search', 'raindrops' ); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'raindrops' ); ?>" />
</div>
Expand All @@ -26,10 +26,10 @@
?>
<form method="get" name="searchform" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="searchform">
<label class="screen-reader-text" for="s"><?php esc_attr_e('Search for:', 'raindrops');?></label>
<label class="screen-reader-text" for="s"><?php esc_html_e('Search for:', 'raindrops');?></label>
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" accesskey="s" tabindex="1" />
&nbsp;
<input type="submit" id="searchsubmit" value="<?php esc_html_e( 'Search', 'raindrops' ); ?>" accesskey="b" tabindex="2" />
<input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'raindrops' ); ?>" accesskey="b" tabindex="2" />
</div>
</form>
<?php
Expand Down
5 changes: 4 additions & 1 deletion style.css
Expand Up @@ -4,11 +4,13 @@ Theme URI: https://www.tenman.info/wp3/raindrops/
Description: This theme can change freely fonts,layout,color scheme and header image for each post,page. The google fonts, you can use freely in the post more than 90percent of the fonts.Color scheme and layout, you can freely change from theme customizer.For more updates, please make sure to open the link of the changelog from the help tab of this theme page.Add new post, so also to help tab of edit post page has been described how to use tips, please visit. Supported languages Japanese - JAPAN (ja) French - FRANCE (fr_FR) Polish - POLAND (PL) (pl_PL) Portuguese - BRAZIL (pt_BR)
Author: Tenman
Author URI: https://www.tenman.info/wp3/
Version: 1.538
Version: 1.539
Tags: block-styles, wide-blocks, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-colors, custom-header, custom-background, custom-menu, editor-style, theme-options, threaded-comments, sticky-post, translation-ready, post-formats, featured-images, full-width-template, rtl-language-support, microformats, grid-layout, flexible-header, custom-logo, featured-image-header, footer-widgets
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raindrops
Tested up to: 5.5
Requires PHP: 5.6
*/
/**
* MAIN STYLESHEET
Expand Down Expand Up @@ -3224,6 +3226,7 @@ table#wp-caledar td a{
background-size:cover;
background-position:center center;
background-repeat:no-repeat;
box-sizing:border-box;
}
#bd figure.wp-block-image.alignwide{
margin-left:0;
Expand Down

0 comments on commit 5515c76

Please sign in to comment.