WordPress.org

Make WordPress Core

Opened 16 months ago

#44485 new enhancement

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

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

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 16 months ago.
Patch for some functions in comments-template.php
comment-template.php.2.patch (11.8 KB) - added by tristanleboss 16 months ago.
Latest patch with all functions done

Download all attachments as: .zip

Change History (2)

@tristanleboss
16 months ago

Patch for some functions in comments-template.php

@tristanleboss
16 months ago

Latest patch with all functions done

Note: See TracTickets for help on using tickets.