Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#44297 closed defect (bug) (duplicate)

Error and Bug!

Reported by: wordpressticket Owned by:
Priority: normal Milestone:
Component: Posts, Post Types Version: 4.9.1
Severity: normal Keywords:
Cc: Focuses:

Description

Hello,

i am write a page.php file as :

<?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)

Attachments (1)

post-template.php (57.3 KB ) - added by wordpressticket 8 years ago.
/home/name/public_html/wp-includes/post-template.php

Download all attachments as: .zip

Change History (3)

@wordpressticket
8 years ago

/home/name/public_html/wp-includes/post-template.php

#1 @Clorith
8 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Hi there, and welcome to WordPress trac!

We are already working on this issue in #42814

#2 @SergeyBiryukov
8 years ago

  • Component GeneralPosts, Post Types
Note: See TracTickets for help on using tickets.