Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 2 months ago

#10705 closed enhancement (fixed)

Pass Post ID to the get_comments_number filter

Reported by: sirzooro's profile sirzooro Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.4
Component: Comments Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

See attached path.

Attachments (1)

comment-template.php.diff (321 bytes) - added by sirzooro 17 years ago.

Download all attachments as: .zip

Change History (5)

#1 @scribu
17 years ago

  • Milestone changed from 2.8.5 to 2.9

#2 @azaozz
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11895]) Pass Post ID to the get_comments_number filter, props sirzooro, fixes #10705

This ticket was mentioned in PR #10716 on WordPress/wordpress-develop by @mohammadzaid.


2 months ago
#3

  • Keywords has-unit-tests added

@westonruter ✅ EXACT isset() implementation per your #10705 review:

src/wp-admin/admin-ajax.php (1 line change):
`php
$action = isset( $_POSTaction? ) ? $_POSTaction? : ;

Note: See TracTickets for help on using tickets.