| Summary: | Allow table of contents on posts in special cases | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jon Davis <jond> | ||||||||||
| Component: | WebKit Website | Assignee: | Jon Davis <jond> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | hi, jond, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Jon Davis
2022-03-10 16:20:53 PST
Created attachment 454423 [details]
Patch
Created attachment 454424 [details]
Before applying patch
Created attachment 454425 [details]
After applying patch
Comment on attachment 454423 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=454423&action=review r=me > Websites/webkit.org/wp-content/plugins/table-of-contents.php:24 > + public static function tocEnabled ($post_type) { Style: I think we'd prefer something like `shouldEnableTableOfContents`, as future developers might not know what "toc" is 😅 Unless `'build-toc'` is some WordPress concept? Created attachment 454499 [details]
Patch
The follow-up patch has been changed to use `'build-table-of-contents'`. Committed r291185 (248344@main): <https://commits.webkit.org/248344@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454499 [details]. |