Plugin Directory

Changeset 3106815

Timestamp:
06/24/2024 05:58:17 PM (5 weeks ago)
Author:
ronalfy
Message:

Fixing image sharing warning. Fixing short links on custom post types.

Location:
highlight-and-share/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • highlight-and-share/trunk/highlight-and-share.php

    r3106124 r3106815  
    66 * Description: Select text, inline highlight, or use a Click to Share block and show social networks.
    77 * Author: DLX Plugins
    8  * Version: 5.0.0
     8 * Version: 5.0.
    99 * Requires at least: 5.1
    1010 * Requires PHP: 7.2
     
    1818namespace DLXPlugins\HAS;
    1919
    20 define( 'HIGHLIGHT_AND_SHARE_VERSION', '5.0.0' );
     20define( 'HIGHLIGHT_AND_SHARE_VERSION', '5.0.' );
    2121define( 'HIGHLIGHT_AND_SHARE_FILE', __FILE__ );
    2222
  • highlight-and-share/trunk/php/Frontend.php

    r3106124 r3106815  
    614614                // Try to get its parent, which may possibly be a gallery.
    615615                $maybe_new_parent_element = $parent_element->parentNode;
    616                 if ( 'figure' === $maybe_new_parent_element->tagName ) {
     616                if ( 'figure' === $maybe_new_parent_element->tagName ) {
    617617                    $parent_element = $maybe_new_parent_element;
    618618                }
  • highlight-and-share/trunk/php/Functions.php

    r2865396 r3106815  
    140140        $url               = get_permalink( $post_id );
    141141        if ( $enable_shortlinks ) {
    142             $url = wp_get_shortlink( $post_id );
     142            $maybe_url = wp_get_shortlink( $post_id );
     143            if ( ! empty( $maybe_url ) ) {
     144                $url = $maybe_url;
     145            }
    143146        }
    144147
  • highlight-and-share/trunk/readme.txt

    r3106124 r3106815  
    44Requires at least: 5.1
    55Tested up to: 6.6
    6 Stable tag: 5.0.0
     6Stable tag: 5.0.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    121121== Changelog ==
    122122
     123
     124
     125
     126
     127
     128
    123129= 5.0.0 (Holly) =
    124130* Released 2024-06-22
     
    555561== Upgrade Notice ==
    556562
    557 = 5.0.0 =
    558 New features: Comprehensive Click to Share shortcode, image sharing, and comment section support. Tested with WP 6.6.
     563= 5.0. =
     564.
Note: See TracChangeset for help on using the changeset viewer.