[wp-trac] [WordPress Trac] #44162: Add is_countable() check to wp-admin/edit-form-advanced.php

WordPress Trac noreply at wordpress.org
Sun May 20 16:52:53 UTC 2018


#44162: Add is_countable() check to wp-admin/edit-form-advanced.php
--------------------------+---------------------
 Reporter:  thrijith      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.9.7
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by thrijith):

 I am having a doubt regarding this, how to replace where count's value is
 used directly?
 for eg

 {{{

 if ( is_array( $done ) ) {
  $done['updated'] = count( $done['updated'] );
  $done['skipped'] = count( $done['skipped'] );
  $done['locked']  = count( $done['locked'] );
  $sendback        = add_query_arg( $done, $sendback );
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44162#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list