[wp-trac] [WordPress Trac] #60032: $body_id global variable return value to string not int. (was: $body_id global variable return value int not string.)

WordPress Trac noreply at wordpress.org
Mon Dec 11 09:58:10 UTC 2023


#60032: $body_id global variable return value to string not int.
-----------------------------------------+-------------------------------
 Reporter:  upadalavipul                 |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  6.5
Component:  General                      |     Version:  4.3
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch changes-requested  |     Focuses:  coding-standards
-----------------------------------------+-------------------------------

Old description:

> I have reviewed the template.php file code and found the $body_id global
> variable returns the value int and the comment code mentions string
> values. So think we need to update the comment code here.
>
> Files:
>
> 1. wp-admin/includes/template.php

New description:

 I have reviewed the media.php file code and found the $body_id global
 variable returns the value int and the comment code mentions string
 values. So think we need to update the comment code here.

 Files:

 1. wp-admin/includes/media.php

--

Comment (by mukesh27):

 Thanks @SergeyBiryukov for checking the variable name suggest it's ID so i
 also think it was integer value 😉

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


More information about the wp-trac mailing list