Author: Theodore Brown (theodorejb) Committer: Derick Rethans (derickr) Date: 2026-06-10T18:24:16+01:00
Commit: https://github.com/php/web-php/commit/5c40e1019a930ea88f27f56170f58f1b8484e6d9 Raw diff: https://github.com/php/web-php/commit/5c40e1019a930ea88f27f56170f58f1b8484e6d9.diff Allow linking to additional features headings This is possible on the previous release pages, but for some reason wasn't implemented for PHP 8.5. Changed paths: M releases/8.5/release.inc M styles/php85.css Diff: diff --git a/releases/8.5/release.inc b/releases/8.5/release.inc index 650ad6d05e..05447e3385 100644 --- a/releases/8.5/release.inc +++ b/releases/8.5/release.inc @@ -686,7 +686,7 @@ PHP <div class="release-notes-grid-container"> <div class="release-notes-grid"> <div> - <h2><?= message('new_classes_title', $lang) ?></h2> + <h2 id="additional-improvements"><?= message('new_classes_title', $lang) ?></h2> <ul class="new"> <li><?= message('fatal_error_backtrace', $lang) ?></li> <li><?= message('const_attribute_target', $lang) ?></li> @@ -712,7 +712,7 @@ PHP </ul> </div> <div> - <h2><?= message('bc_title', $lang) ?></h2> + <h2 id="deprecations-and-bc-breaks"><?= message('bc_title', $lang) ?></h2> <ul class="old"> <li><?= message('bc_backtick_operator', $lang, [ '<a href="/manual/' . $documentation . '/function.shell-exec.php"><code>shell_exec()</code></a>' diff --git a/styles/php85.css b/styles/php85.css index 900a1a8ce0..1422c8f75c 100644 --- a/styles/php85.css +++ b/styles/php85.css @@ -75,6 +75,7 @@ code[class*=language-], pre[class*=language-] { } .features-title h2, +.release-notes h2, .before-and-after-title-and-description h2 { position: relative; overflow: visible; @@ -82,6 +83,7 @@ code[class*=language-], pre[class*=language-] { } .features-title h2 .genanchor, +.release-notes h2 .genanchor, .before-and-after-title-and-description h2 .genanchor { position: absolute; top: 4px; @@ -97,11 +99,13 @@ code[class*=language-], pre[class*=language-] { } .dark .features-title h2 .genanchor, +.dark .release-notes h2 .genanchor, .dark .before-and-after-title-and-description h2 .genanchor { background: url("/images/php8/anchor-white.svg") scroll no-repeat left center / 21px 16px transparent; } .features-title h2:hover .genanchor, +.release-notes h2:hover .genanchor, .before-and-after-title-and-description h2:hover .genanchor { display: block; } @@ -2170,7 +2174,6 @@ header nav { } .release-notes ul { - margin-top: calc(var(--spacing) * 6); margin-left: calc(var(--spacing) * 4); list-style-type: disc }
