mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Remove use of global $id from comment_form() and the media list table. see #24330.
git-svn-id: https://develop.svn.wordpress.org/trunk@24337 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1597,10 +1597,8 @@ function wp_list_comments($args = array(), $comments = null ) {
|
||||
* @return void
|
||||
*/
|
||||
function comment_form( $args = array(), $post_id = null ) {
|
||||
global $id;
|
||||
|
||||
if ( null === $post_id )
|
||||
$post_id = $id;
|
||||
$post_id = get_the_ID();
|
||||
else
|
||||
$id = $post_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user