توضیحات
Embed a PDF from the Media Library or elsewhere via oEmbed or as a block into an iframe tag.
تغییرات این نسخه
2.5.1 / 2026-08-12
add .distignore for deployment
2.5.0 / 2026-08-12
modernize block to current Gutenberg standards (block.json, useBlockProps, block-scoped CSS)
update build tooling to @wordpress/scripts 32 and Node 20, build in CI
fix JS translations, load styles only when block or oEmbed is present
use attachment_url_to_postid() instead of direct $wpdb query
add phpcs ruleset and lint CI
2.4.8 / 2025-02-21
use wp_safe_remote_get()
2.4.7 / 2025-02-05
validate destination URL for oEmbed
add max-height: 500px; to PDF display
2.4.6 / 2024-11-01
remove load_plugin_textdomain()
2.4.5 / 2024-10-7
escape block parameters
2.4.4 / 2024-08-16
refactor $description in dynamic_render_callback(), who knew the title attribute could be not set
update requirements, PHP 7.4+, WP 6.0
2.4.1 – 2.4.3 / 2024-08-08
more sanitizing of URL
fix typos and update readme
use media file description for title if present
escape description in render
2.4.0 / 2024-08-06
convert to only use iframe
use Google Doc Viewer for Chrome and mobile
dynamically render iframe in block based on browser
mitigate Chromium issue by rendering PDF with Google Doc Viewer
thanks to @costdev for helping with dynamic block rendering
2.3.1 / 2023-09-10
update GA
update tested to
2.3.0 / 2021-07-07
add @10up GitHub Actions integration for WordPress SVN
2.2.0 / 2021-03-05
update Toolbar to ToolbarGroup and ToolbarButton
add limited support for block alignment toolbar
fixes for i18n in block
add .distignore for deployment
2.5.0 / 2026-08-12
modernize block to current Gutenberg standards (block.json, useBlockProps, block-scoped CSS)
update build tooling to @wordpress/scripts 32 and Node 20, build in CI
fix JS translations, load styles only when block or oEmbed is present
use attachment_url_to_postid() instead of direct $wpdb query
add phpcs ruleset and lint CI
2.4.8 / 2025-02-21
use wp_safe_remote_get()
2.4.7 / 2025-02-05
validate destination URL for oEmbed
add max-height: 500px; to PDF display
2.4.6 / 2024-11-01
remove load_plugin_textdomain()
2.4.5 / 2024-10-7
escape block parameters
2.4.4 / 2024-08-16
refactor $description in dynamic_render_callback(), who knew the title attribute could be not set
update requirements, PHP 7.4+, WP 6.0
2.4.1 – 2.4.3 / 2024-08-08
more sanitizing of URL
fix typos and update readme
use media file description for title if present
escape description in render
2.4.0 / 2024-08-06
convert to only use iframe
use Google Doc Viewer for Chrome and mobile
dynamically render iframe in block based on browser
mitigate Chromium issue by rendering PDF with Google Doc Viewer
thanks to @costdev for helping with dynamic block rendering
2.3.1 / 2023-09-10
update GA
update tested to
2.3.0 / 2021-07-07
add @10up GitHub Actions integration for WordPress SVN
2.2.0 / 2021-03-05
update Toolbar to ToolbarGroup and ToolbarButton
add limited support for block alignment toolbar
fixes for i18n in block