Changeset 3238650
- Timestamp:
- 02/11/2025 02:57:08 PM (14 months ago)
- Location:
- molongui-authorship/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
i18n/molongui-authorship.pot (modified) (1 diff)
-
includes/admin/author-box-editor.php (modified) (1 diff)
-
includes/author.php (modified) (5 diffs)
-
molongui-authorship.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molongui-authorship/trunk/README.txt
r3238586 r3238650 197 197 198 198 <strong>Important</strong>: If you use a caching plugin, please clear your cache after updating any plugins. 199 200 = 5.0.14 (2025-02-11) = 201 202 * Added: Filter to customize attributes for the author avatar `<img>` element. 199 203 200 204 = 5.0.13 (2025-02-11) = -
molongui-authorship/trunk/changelog.txt
r3238586 r3238650 2 2 3 3 == Changelog == 4 5 = 5.0.14 (2025-02-11) = 6 7 * Added: Filter to customize attributes for the author avatar `<img>` element. 4 8 5 9 = 5.0.13 (2025-02-11) = -
molongui-authorship/trunk/i18n/molongui-authorship.pot
r3238586 r3238650 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: molongui-authorship 5.0.1 3\n"9 "Project-Id-Version: molongui-authorship 5.0.14\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-02-11 1 3:49+0100\n"11 "POT-Creation-Date: 2025-02-11 15:54+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
molongui-authorship/trunk/includes/admin/author-box-editor.php
r3238586 r3238650 414 414 wp_die(); 415 415 } 416 public function validate_spacing_options( $options, $current )416 public function validate_spacing_options( $options, $current = null ) 417 417 { 418 418 $size = array -
molongui-authorship/trunk/includes/author.php
r3231805 r3238650 608 608 } 609 609 } 610 611 /*! 612 * FILTER HOOK 613 * Allows filtering the attributes for the returned <img> HTML tag. 614 * 615 * add_filter( 'molongui_authorship/author_avatar_attr', function( $attr ) 616 * { 617 * //$attr = array_merge( $attr, array( 'extra_attr' => 'style="border-radius:100%;"' ) ); // This doesn't work! 618 * $attr = array_merge( $attr, array( 'style' => 'border-radius:100%;' ) ); 619 * 620 * $attr = array_merge( $attr, array( 'class' => 'myCustomClass' ) ); 621 * 622 * return $attr; 623 * } 624 * 625 * @param array $attr HTML attributes to insert in the IMG element. Is not sanitized. 626 * @param int $id The author's id. 627 * @param int $type The author's type, either 'user' or 'guest'. 628 * @param string $size The size for the image {thumbnail | medium | medium_large | large | full | "array(x,y)"}. 629 * @param string $context Usage context {screen | box | url}. 630 * @param Author $this The current author instance. 631 * @since 5.0.14 632 */ 633 $attr = apply_filters( 'molongui_authorship/author_avatar_attr', array_merge( $attr, array( 'width' => $width, 'height' => $height ) ), $this->id, $this->type, $size, $context, $this ); 610 634 switch ( !empty( $source ) ? $source : ( !empty( $options['author_box_avatar_source'] ) ? $options['author_box_avatar_source'] : '' ) ) 611 635 { … … 613 637 if ( $context != 'url' ) 614 638 { 615 $this->avatar = $this->get_gravatar( array_merge( $attr, array( 'width' => $width, 'height' => $height ) ), $options );639 $this->avatar = $this->get_gravatar( $attr, $options ); 616 640 } 617 641 else … … 624 648 if ( $context != 'url' ) 625 649 { 626 $this->avatar = $this->get_acronym( array_merge( $attr, array( 'width' => $width, 'height' => $height ) ), $options );650 $this->avatar = $this->get_acronym( $attr, $options ); 627 651 } 628 652 else … … 684 708 else 685 709 { 686 $this->avatar = $this->get_gravatar( array_merge( $attr, array( 'width' => $width, 'height' => $height ) ), $options );710 $this->avatar = $this->get_gravatar( $attr, $options ); 687 711 } 688 712 break; … … 691 715 if ( $context !== 'url' ) 692 716 { 693 $this->avatar = $this->get_acronym( array_merge( $attr, array( 'width' => $width, 'height' => $height ) ), $options );717 $this->avatar = $this->get_acronym( $attr, $options ); 694 718 } 695 719 break; -
molongui-authorship/trunk/molongui-authorship.php
r3238586 r3238650 13 13 * Plugin URI: https://www.molongui.com/wordpress-plugin-post-authors 14 14 * Description: All-in-One Authorship Solution: Seamless Author Box, Guest Authors, and Co-Authors to enhance your site's authority, credibility, engagement, and SEO. 15 * Version: 5.0.1 315 * Version: 5.0.14 16 16 * Requires at least: 5.2 17 17 * Tested up to: 6.7 … … 44 44 final class MolonguiAuthorship 45 45 { 46 const VERSION = '5.0.1 3';46 const VERSION = '5.0.14'; 47 47 use Singleton; 48 48 function __construct()
Note: See TracChangeset
for help on using the changeset viewer.