zedzedzed / table-of-contents-plus

https://wordpress.org/plugins/table-of-contents-plus/
GNU General Public License v2.0
53 stars 27 forks source link

Allow empty title in TOC+ widget #118

Closed zedzedzed closed 8 years ago

zedzedzed commented 8 years ago

As per http://dublue.com/plugins/toc/comment-page-11/#comment-5140

zedzedzed commented 8 years ago

When the TOC+ widget is first positioned into a sidebar, the title field is blank. The widget save routine also respects blank titles and leaves it blank afterwards. At no time is there a default title displayed in the backend. That said, for the frontend, the a blank widget title is replaced with the title field in Settings > TOC+.

The behaviour should change to be more visible. That is, when the TOC+ widget is first placed on a sidebar, it should default to the title setting. If the user removes the title, then no fallback title should result in the frontend.