Author: Derick Rethans (derickr)
Date: 2025-09-02T16:36:46+01:00

Commit: 
https://github.com/php/web-php/commit/2ceb89655f20ae4bd5eab290972738f7b530138a
Raw diff: 
https://github.com/php/web-php/commit/2ceb89655f20ae4bd5eab290972738f7b530138a.diff

Revert back to original description, if no specific one was set

Changed paths:
  M  include/layout.inc


Diff:

diff --git a/include/layout.inc b/include/layout.inc
index f359462dca..83efa1c6bb 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -427,7 +427,7 @@ function site_header(?string $title = NULL, array $config = 
[]): void
 
     $title = $title ? "PHP: {$title}" : 'PHP';
     $meta_image_path = $MYSITE . 'images/meta-image.png';
-    $meta_description = $config['description'] ?? $title;
+    $meta_description = $config['description'] ?? "PHP is a popular 
general-purpose scripting language that powers everything from your blog to the 
most popular websites in the world.";
 
     $defaults = [
         "lang" => $LANG,

Reply via email to