Plugin Directory

Changeset 3132850

Timestamp:
08/08/2024 06:49:45 PM (6 weeks ago)
Author:
afragen
Message:

Update to version 2.4.3 from GitHub

Location:
embed-pdf-viewer
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • embed-pdf-viewer/tags/2.4.3/CHANGES.md

    r3132838 r3132850  
    11#### [unreleased]
    22
    3 #### 2.4.2 / 2024-08-08
    4 * use media file description for title if present
    5 
    6 #### 2.4.1 / 2024-08-08
     3#### 2.4.1 - 2.4.3 / 2024-08-08
    74* more sanitizing of URL
    85* fix typos and update readme
     6
     7
    98
    109#### 2.4.0 / 2024-08-06
  • embed-pdf-viewer/tags/2.4.3/embed-pdf-viewer.php

    r3132838 r3132850  
    1515 * Author:            Andy Fragen
    1616 * Author URI:        https://github.com/afragen
    17  * Version:           2.4.2
     17 * Version:           2.4.
    1818 * License:           GPLv2+
    1919 * Domain Path:       /languages
     
    138138        }
    139139
    140         $classes = 'embed-pdf-viewer';
    141         $src     = $is_chrome || wp_is_mobile() ? 'https://docs.google.com/viewer?url=' . rawurlencode( $url ) . '&embedded=true' : $url;
     140        $classes     = 'embed-pdf-viewer';
     141        $src         = $is_chrome || wp_is_mobile() ? 'https://docs.google.com/viewer?url=' . rawurlencode( $url ) . '&embedded=true' : $url;
     142        $description = $attributes['description'] ?? $attributes['title'];
    142143        return sprintf(
    143144            '<iframe class="%1$s" src="%2$s" height="%3$s" width="%4$s" title="%5$s"%6$s></iframe>',
     
    146147            $attributes['width'] ?? '600',
    147148            $attributes['height'] ?? '600',
    148             $attributes['description'] ?? $attributes['title'],
     149            ,
    149150            $is_chrome || wp_is_mobile() ? ' frameborder="0"' : ''
    150151        );
     
    255256        }
    256257        $iframe .= 'height="' . $atts['height'] . '" width="' . $atts['width'] . '" ';
    257         $iframe .= 'title="' . $description . '"></iframe>' . "\n";
     258        $iframe .= 'title="' . . '"></iframe>' . "\n";
    258259
    259260        $embed  = '<div>';
    260261        $embed .= $iframe;
    261         $embed .= '<p><a href="' . $sanitized_url . '" title="' . $description . '">' . $description . '</a></p>';
     262        $embed .= '<p><a href="' . $sanitized_url . '" title="' . . '</a></p>';
    262263        $embed .= '</div>';
    263264
  • embed-pdf-viewer/tags/2.4.3/readme.txt

    r3132838 r3132850  
    66Tested up to: 6.6
    77Requires PHP: 5.6
    8 Stable tag: 2.4.2
     8Stable tag: 2.4.
    99License: GPL v2+
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3131## Changelog
    3232
    33 #### 2.4.2 / 2024-08-08
    34 * use media file description for title if present
    35 
    36 #### 2.4.1 / 2024-08-08
     33#### 2.4.1 - 2.4.3 / 2024-08-08
    3734* more sanitizing of URL
    3835* fix typos and update readme
     36
     37
    3938
    4039#### 2.4.0 / 2024-08-06
  • embed-pdf-viewer/trunk/CHANGES.md

    r3132838 r3132850  
    11#### [unreleased]
    22
    3 #### 2.4.2 / 2024-08-08
    4 * use media file description for title if present
    5 
    6 #### 2.4.1 / 2024-08-08
     3#### 2.4.1 - 2.4.3 / 2024-08-08
    74* more sanitizing of URL
    85* fix typos and update readme
     6
     7
    98
    109#### 2.4.0 / 2024-08-06
  • embed-pdf-viewer/trunk/embed-pdf-viewer.php

    r3132838 r3132850  
    1515 * Author:            Andy Fragen
    1616 * Author URI:        https://github.com/afragen
    17  * Version:           2.4.2
     17 * Version:           2.4.
    1818 * License:           GPLv2+
    1919 * Domain Path:       /languages
     
    138138        }
    139139
    140         $classes = 'embed-pdf-viewer';
    141         $src     = $is_chrome || wp_is_mobile() ? 'https://docs.google.com/viewer?url=' . rawurlencode( $url ) . '&embedded=true' : $url;
     140        $classes     = 'embed-pdf-viewer';
     141        $src         = $is_chrome || wp_is_mobile() ? 'https://docs.google.com/viewer?url=' . rawurlencode( $url ) . '&embedded=true' : $url;
     142        $description = $attributes['description'] ?? $attributes['title'];
    142143        return sprintf(
    143144            '<iframe class="%1$s" src="%2$s" height="%3$s" width="%4$s" title="%5$s"%6$s></iframe>',
     
    146147            $attributes['width'] ?? '600',
    147148            $attributes['height'] ?? '600',
    148             $attributes['description'] ?? $attributes['title'],
     149            ,
    149150            $is_chrome || wp_is_mobile() ? ' frameborder="0"' : ''
    150151        );
     
    255256        }
    256257        $iframe .= 'height="' . $atts['height'] . '" width="' . $atts['width'] . '" ';
    257         $iframe .= 'title="' . $description . '"></iframe>' . "\n";
     258        $iframe .= 'title="' . . '"></iframe>' . "\n";
    258259
    259260        $embed  = '<div>';
    260261        $embed .= $iframe;
    261         $embed .= '<p><a href="' . $sanitized_url . '" title="' . $description . '">' . $description . '</a></p>';
     262        $embed .= '<p><a href="' . $sanitized_url . '" title="' . . '</a></p>';
    262263        $embed .= '</div>';
    263264
  • embed-pdf-viewer/trunk/readme.txt

    r3132838 r3132850  
    66Tested up to: 6.6
    77Requires PHP: 5.6
    8 Stable tag: 2.4.2
     8Stable tag: 2.4.
    99License: GPL v2+
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3131## Changelog
    3232
    33 #### 2.4.2 / 2024-08-08
    34 * use media file description for title if present
    35 
    36 #### 2.4.1 / 2024-08-08
     33#### 2.4.1 - 2.4.3 / 2024-08-08
    3734* more sanitizing of URL
    3835* fix typos and update readme
     36
     37
    3938
    4039#### 2.4.0 / 2024-08-06
Note: See TracChangeset for help on using the changeset viewer.