[web-php] better-embed-cards-and-meta-information: Revert back to original description, if no specific one was set
| From: | Derick Rethans | Date: | Tue, 02 Sep 2025 15:39:11 +0000 |
| Subject: | [web-php] better-embed-cards-and-meta-information: Revert back to original description, if no specific one was set | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-33155@lists.php.net to get a copy of this message | ||
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,