Make WordPress Core

Opened 6 years ago

#44485 new enhancement

Allow some functions from comments-template.php to accept a comment or post ID

Reported by: tristanleboss's profile tristanleboss Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords: has-patch
Focuses: Cc:

Description

Nowadays, it's not uncommon to have to use some templating functions outside of the loop.

Most of them already accepts a comment or post ID (get_permalink, ...).

But, that's not the case for some functions related to comments.

I did a small update of the file to allow that.

Attachments (2)

comment-template.php.patch (6.7 KB) - added by tristanleboss 6 years ago.
Patch for some functions in comments-template.php
comment-template.php.2.patch (11.8 KB) - added by tristanleboss 6 years ago.
Latest patch with all functions done

Download all attachments as: .zip

Change History (2)

@tristanleboss
6 years ago

Patch for some functions in comments-template.php

@tristanleboss
6 years ago

Latest patch with all functions done

Note: See TracTickets for help on using tickets.