Skip to content

Commit

Permalink
bump versions, update readme for 1.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwweb committed Jul 11, 2024
1 parent edf463d commit e1ee5af
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
8 changes: 5 additions & 3 deletions enhanced-embed-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author: Mark Root-Wiley, MRW Web Design
* Author URI: https://MRWweb.com
* Text Domain: enhanced-embed-block
* Version: 1.0.0
* Version: 1.1.0
* Requires at least: 6.5
* Requires PHP: 7.4
* License: GPLv3 or later
Expand All @@ -19,7 +19,7 @@

use WP_HTML_TAG_Processor;

define( 'EEB_VERSION', '1.0.0' );
define( 'EEB_VERSION', '1.1.0' );

add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_lite_youtube_component' );
/**
Expand Down Expand Up @@ -64,7 +64,7 @@ function enqueue_embed_block_style() {
*/
function replace_youtube_embed_with_web_component( $content, $block ) {
$isValidYouTube = 'youtube' === $block['attrs']['providerNameSlug'] && isset( $block['attrs']['url'] );
if( is_feed() || ! $isValidYouTube ) {
if( ! $isValidYouTube || is_feed() ) {
return $content;
}

Expand Down Expand Up @@ -140,6 +140,8 @@ function extract_title_from_embed_code( $html ) {
*
* @param string $html A block of HTML containing a YouTube iframe.
* @return string The figcaption OR an empty string
*
* @todo Replace this with HTML Tag Processor, if possible
*/
function extract_figcaption_from_embed_code( $html ) {
preg_match( '/<figcaption(.*?)<\/figcaption>/s', $html, $match );
Expand Down
26 changes: 17 additions & 9 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== Enhanced Embed Block for YouTube ===
Contributors: mrwweb
Contributors: mrwweb, cbirdsong
Donate link: https://paypal.me/rootwiley
Tags: YouTube, embed, video, block, performance
Requires at least: 6.5
Tested up to: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0-retry-github-action
Stable tag: 1.1.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -57,7 +57,7 @@ If enough people express interest, I'll build it! [Let me know if you're interes

= Does this create a new block? =

No. It enhances the default WordPress YouTube embed block.
No. It enhances the default WordPress embed block for YouTube videos.

= Does it automatically enhance all my YouTube embeds? =

Expand All @@ -75,17 +75,25 @@ Your embed blocks go back to how they were before.

Not right now. If you'd pay for a PRO version with this feature, [let me know](https://mrwweb.com/wordpress-plugins/enhanced-embed-block/#pro).

= Known Issues =

Some older videos do not have a thumbnail image in the modern webp format. This can lead to a blurry gray video poster image for the video. [Upstream issue](https://github.com/justinribeiro/lite-youtube/issues/79)

== Software ==

This plugin uses the [`lite-youtube` custom-element](https://github.com/justinribeiro/lite-youtube) under the MIT license. Thank you to Paul Irish and Justin Ribiero for their work on that project.

== Changelog ==

= 1.1.0 =
- Fix missing file on WordPress.org version of plugin due to misconfigured Github deployment
- MAJOR CHANGE: The default poster image is now the highest quality possible. There is a new `eeb_posterquality` filter to change that, if desired. (#5)
- Add experimental patch to the `lite-youtube` web component that detects missing YouTube poster images and fallsback to different format / lower quality (#4)
- Add `!important` to all CSS styles to improve theme compatibility. Add custom properties to make color changes to fallback styles easier. (#8)
- Add `eeb_nocookie` filter to customize domain for loading the YouTube iframe (defaults to nocookie) (#7)
- Don't use lite-youtube embed in feeds (#9)
- Props to @cbirdsong for numerous issues on Github that led to most of these changes

= 1.0.0 =
- Initial release to the WordPress repository!

== Upgrade Notice ==
== Upgrade Notice ==

= 1.1.0 =
Fix plugin in WordPress repository. Use higher quality poster image with new fallback detection. Don't apply embed changes to feeds. Developer improvements.

0 comments on commit e1ee5af

Please sign in to comment.