Sitemaps: Add wrapping `<div>` around sitemap in stylesheet.

This makes it easier to style the sitemap and for example center the entire content area.

Props ramiy.
Fixes #50622.
Built from https://develop.svn.wordpress.org/trunk@48471


git-svn-id: http://core.svn.wordpress.org/trunk@48240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2020-07-14 11:45:03 +00:00
parent 66c6ad97bc
commit c1ac7b5e16
2 changed files with 59 additions and 55 deletions

View File

@ -91,6 +91,7 @@ class WP_Sitemaps_Stylesheet {
</style>
</head>
<body>
<div id="sitemap">
<div id="sitemap__header">
<h1>{$title}</h1>
<p>{$description}</p>
@ -131,6 +132,7 @@ class WP_Sitemaps_Stylesheet {
</tbody>
</table>
</div>
</div>
</body>
</html>
</xsl:template>
@ -199,6 +201,7 @@ XSL;
</style>
</head>
<body>
<div id="sitemap">
<div id="sitemap__header">
<h1>{$title}</h1>
<p>{$description}</p>
@ -227,6 +230,7 @@ XSL;
</tbody>
</table>
</div>
</div>
</body>
</html>
</xsl:template>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta1-48470';
$wp_version = '5.5-beta1-48471';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.