Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#39294 closed defect (bug) (fixed)

Incorrect docs for pre_do_shortcode_tag and do_shortcode_tag filters

Reported by: pento's profile pento Owned by: dd32's profile dd32
Milestone: 4.8 Priority: low
Severity: trivial Version: 4.7
Component: Shortcodes Keywords: has-patch
Focuses: docs Cc:


The $attr parameter in these filters is listed as an array, but it comes from shortcode_parse_atts(), which can return an array or a string.

Attachments (1)

39294.patch (1.4 KB) - added by dhanendran 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @dhanendran
8 years ago

  • Keywords has-patch added; needs-patch removed

Uploaded the patch for this ticket.

#2 @dd32
7 years ago

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

In 39665:

Shortcodes: Clarify the docs for pre_do_shortcode_tag and do_shortcode_tag.

Props dhanendran.
Fixes #39294.

#3 @dd32
7 years ago

  • Milestone changed from 4.7.1 to 4.8

After chatting with @DrewAPicture I'm punting this to 4.8.

If the docs are critical enough, Scott can manually update it, but it's obscure and trivial enough that I don't expect anyone to really run into it.

Note: See TracTickets for help on using tickets.