WPIntell

Source evidence

Patch for custom titles

Pages In Widgets · support · 2020-04-18T13:22:00+00:00

complaintsentiment
mediumseverity
0.75relevance
0replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Marcus (aka @msykes) unresolved
Hi, out of necessity I’ve added a custom title to your widgets, instead of taking the default post/page title, I think it’d come in useful for some. https://pastebin.com/UYtiiAWf I also fixed another bug where the title in the appearances menu shows ‘true’ rather than the chosen post/page for a widget, which is included in this patch. Basically, by adding a title form field to the form() function of a widget, the title shows up. This will sort out the problem: <input type="hidden" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($instance['title']); ?>" /> Hopefully this’ll make it in the next update!

Comments

0 shown

No comments were stored for this source.