[wp-trac] [WordPress Trac] #44297: Error and Bug!

WordPress Trac noreply at wordpress.org
Sun Jun 3 06:53:58 UTC 2018


#44297: Error and Bug!
-----------------------------+-----------------------------
 Reporter:  wordpressticket  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  4.9.1
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+-----------------------------
 Hello,

 i am write a page.php file as :
 {{{
 #!php
 <?php get_header() ?>
         <div class="container">
                         <div class="news_single">
                                 <center>
                                         <h2><?php the_title() ?></h2>
                                         <?php the_content(__('')); ?>
                         </div>
                         </center>
         </div>
 <?php get_footer() ?>
 }}}


 == So What is Bug?
 `<?php the_content(__('')); ?>`


 == When show Error!?
 when php version of server is 7.2.

 == What is Error?
 {{{
 Warning: count(): Parameter must be an array or an object that implements
 Countable in /home/shatelga/public_html/wp-includes/post-template.php on
 line 284
 }}}


 == What is WordPress Version?
 **wordpress-4.9.1-fa_IR**
 (https://fa.wordpress.org/wordpress-4.9.1-fa_IR.zip)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44297>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list