Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#44297 closed defect (bug) (duplicate)

Error and Bug!

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

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 6 years ago.
/home/name/public_html/wp-includes/post-template.php

Download all attachments as: .zip

Change History (3)

@wordpressticket
6 years ago

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

#1 @Clorith
6 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, and welcome to WordPress trac!

We are already working on this issue in #42814

#2 @SergeyBiryukov
6 years ago

  • Component changed from General to Posts, Post Types
Note: See TracTickets for help on using tickets.