Skip to content

Commit

Permalink
Merge pull request #87 from manualdousuario/erroFatalIf
Browse files Browse the repository at this point in the history
Erro fatal em um `if`
  • Loading branch information
rghedin authored Jan 29, 2025
2 parents 1e2ab2f + f52478b commit 978b4fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

if ( ! defined( '_S_VERSION' ) ) {
define( '_S_VERSION', '3.6.1' );
define( '_S_VERSION', '3.6.2' );
}

/**
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tags: featured-images, threaded-comments
Requires at least: 4.5
Tested up to: 8.2
Requires PHP: 5.6
Stable tag: 3.6.1
Stable tag: 3.6.2
License: GNU General Public License v2 or later
License URI: LICENSE

Expand Down Expand Up @@ -43,6 +43,9 @@ Dez includes support for WooCommerce and for Infinite Scroll in Jetpack.

== Changelog ==

= 3.6.2 - Jan 29 2025 =
* Corrige um `if` mal feito no `template-tags/content.php` que causava um erro fatal em alguns locais da aplicação.

= 3.6.1 - Jan 29 2025 =
* Corrige uso do `style.min.css` no arquivo `functions.php`.
* Corrige ícone da classe `.compartilhe` no modo escuro.
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://manualdousuario.net/
Author: Rodrigo Ghedin
Author URI: https://rodrigo.ghed.in/
Description: Manual do Usuário Theme
Version: 3.6.1
Version: 3.6.2
Tested up to: 8.2
Requires PHP: 5.6
License: GNU General Public License v2 or later
Expand Down
4 changes: 2 additions & 2 deletions template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
wp_kses_post( get_the_title() )
)
); ?>
<?php if ( !is_page() ) { ?>
<?php if ( !is_page() ) : ?>
<button class="compartilhe" onClick="compartilharPost('<?php echo esc_html( get_the_title() ); ?>', '<?php echo esc_url( get_permalink() ); ?>', this);" title="Compartilhe este post">
<span>Compartilhe</span>
</button>
<?php } ?>
<?php endif; ?>

</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
Expand Down

0 comments on commit 978b4fc

Please sign in to comment.