Changeset 3336544
- Timestamp:
- 07/30/2025 10:41:09 AM (7 months ago)
- Location:
- image-video-xml-sitemap
- Files:
-
- 32 added
- 3 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/assets (added)
-
tags/1.0.3/assets/css (added)
-
tags/1.0.3/assets/css/ivxs-admin-css.css (added)
-
tags/1.0.3/assets/css/ivxs-pdf-sitemap.xsl (added)
-
tags/1.0.3/assets/js (added)
-
tags/1.0.3/assets/js/ivxs-admin-js.js (added)
-
tags/1.0.3/documenation.html (added)
-
tags/1.0.3/image-video-xml-sitemap.php (added)
-
tags/1.0.3/includes (added)
-
tags/1.0.3/includes/class-image-video-xml-sitemap.php (added)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-ar.l10n.php (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-ar.mo (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-ar.po (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-de_DE.l10n.php (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-de_DE.mo (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-de_DE.po (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-en_US.l10n.php (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-en_US.mo (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-en_US.po (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-ja.l10n.php (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-ja.mo (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-ja.po (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-nl_NL.l10n.php (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-nl_NL.mo (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-nl_NL.po (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-zh_CN.l10n.php (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-zh_CN.mo (added)
-
tags/1.0.3/languages/image-video-xml-sitemap-zh_CN.po (added)
-
tags/1.0.3/languages/image-video-xml-sitemap.pot (added)
-
tags/1.0.3/readme.txt (added)
-
trunk/image-video-xml-sitemap.php (modified) (1 diff)
-
trunk/includes/class-image-video-xml-sitemap.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-video-xml-sitemap/trunk/image-video-xml-sitemap.php
r3310512 r3336544 3 3 Plugin Name: Image & Video XML Sitemap 4 4 Description: Enhance your website's media SEO by creating separate sitemaps for images and videos. Fully compatible with Yoast SEO, with advanced customization options. 5 Version: 1.0. 25 Version: 1.0.3 6 6 Requires at least: 5.2 7 7 Requires PHP: 7.4 -
image-video-xml-sitemap/trunk/includes/class-image-video-xml-sitemap.php
r3310818 r3336544 310 310 echo '<loc>' . esc_url( $url ) . '</loc>'; 311 311 if ( $lastmod ) { 312 echo '<lastmod>' . esc_html( $lastmod ) . '</lastmod>';312 echo '<lastmod>' . esc_html( $lastmod ) . '</lastmod>'; 313 313 } 314 314 if ( $media_type === 'image' ) { … … 316 316 } elseif ( $media_type === 'video' ) { 317 317 $thumbnail = esc_url( wp_get_attachment_url( get_post_thumbnail_id() ) ); 318 $title = get_the_title(); 319 $description = get_the_excerpt(); 318 $attachment_id = get_the_ID(); 319 320 // Title fallback 321 $title = get_the_title( $attachment_id ); 322 if ( empty( $title ) ) { 323 $title = get_bloginfo( 'name' ); 324 } 325 326 // Description fallback chain 327 $description = wp_get_attachment_caption( $attachment_id ); 328 if ( empty( $description ) ) { 329 $description = get_post_field( 'post_content', $attachment_id ); 330 } 331 if ( empty( $description ) ) { 332 $description = get_bloginfo( 'description' ); 333 } 334 if ( empty( $description ) ) { 335 $description = get_bloginfo( 'name' ); 336 } 320 337 321 338 echo '<video:video>'; 322 339 echo '<video:thumbnail_loc>' . esc_url( $thumbnail ) . '</video:thumbnail_loc>'; 323 340 echo '<video:title>' . esc_html( $title ) . '</video:title>'; 324 echo '<video:description>' . esc_html( wp_strip_all_tags($description)) . '</video:description>';341 echo '<video:description>' . esc_html($description) . '</video:description>'; 325 342 echo '<video:content_loc>' . esc_url( $url ) . '</video:content_loc>'; 326 343 echo '</video:video>'; -
image-video-xml-sitemap/trunk/readme.txt
r3310794 r3336544 3 3 Tags: sitemaps, xml-sitemap, image sitemap, video sitemap, seo 4 4 Requires at least: 5.2 5 Tested up to: 6. 8.15 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 79 79 == Changelog == 80 80 81 = 1.0.3 = 82 - Improved: Added dynamic <lastmod> support in media sitemap based on attachment modification date. 83 - Fixed: Video sitemap warnings caused by missing <video:title> or <video:description> elements. 84 - Enhanced: Implemented fallback logic for video title and description using attachment data, site tagline, and site title. 85 - Cleanup: General code improvements and better XML escaping for sitemap output. 86 81 87 = 1.0.2 = 82 88 - Enhanced our plugin to support a wider range of file types for image and video sitemaps.
Note: See TracChangeset
for help on using the changeset viewer.