Plugin Directory

Changeset 3234936


Ignore:
Timestamp:
02/04/2025 05:27:24 PM (14 months ago)
Author:
Molongui
Message:

5.0.11 (2025-02-04)

  • Fixed: Post byline now shows additional co-authors count.
Location:
molongui-authorship/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • molongui-authorship/trunk/README.txt

    r3231805 r3234936  
    197197
    198198<strong>Important</strong>: If you use a caching plugin, please clear your cache after updating any plugins.
     199
     200= 5.0.11 (2025-02-04) =
     201
     202* Fixed: Post byline now shows additional co-authors count.
    199203
    200204= 5.0.10 (2025-01-30) =
  • molongui-authorship/trunk/changelog.txt

    r3231805 r3234936  
    22
    33== Changelog ==
     4
     5= 5.0.11 (2025-02-04) =
     6
     7* Fixed: Post byline now shows additional co-authors count.
    48
    59= 5.0.10 (2025-01-30) =
  • molongui-authorship/trunk/common/utils/user.php

    r3086560 r3234936  
    4747        return in_array( $role, (array) self::get_roles( $user ) );
    4848    }
     49    public static function has_multiple_roles( $user = null )
     50    {
     51        $user = self::get( $user );
     52        if ( !$user or !$user->exists() )
     53        {
     54            return false;
     55        }
     56        $roles = $user->roles;
     57        return count( $roles ) > 1;
     58    }
    4959    public static function get_browser_data()
    5060    {
  • molongui-authorship/trunk/i18n/molongui-authorship-ar.po

    r3229540 r3234936  
    33"Project-Id-Version: Molongui Authorship\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     5"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    66"PO-Revision-Date: 2017-08-23 13:23+0100\n"
    77"Last-Translator: Amitzy <molongui@amitzy.com>\n"
     
    24752475#: includes/post.php:1416
    24762476#, php-format
    2477 msgid "%s %d more"
     2477msgid "%d more"
    24782478msgstr ""
    24792479
  • molongui-authorship/trunk/i18n/molongui-authorship-de_DE.po

    r3229540 r3234936  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     11"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    1212"PO-Revision-Date: 2017-08-21 18:25+0200\n"
    1313"Last-Translator: <EMAIL@ADDRESS>\n"
     
    23182318#: includes/post.php:1416
    23192319#, php-format
    2320 msgid "%s %d more"
     2320msgid "%d more"
    23212321msgstr ""
    23222322
  • molongui-authorship/trunk/i18n/molongui-authorship-es_ES.po

    r3229540 r3234936  
    33"Project-Id-Version: Molongui Authorship\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     5"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    66"PO-Revision-Date: 2020-10-21 22:40+0200\n"
    77"Last-Translator: Molongui\n"
     
    24452445#: includes/post.php:1416
    24462446#, php-format
    2447 msgid "%s %d more"
     2447msgid "%d more"
    24482448msgstr ""
    24492449
  • molongui-authorship/trunk/i18n/molongui-authorship-fr_FR.po

    r3229540 r3234936  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     11"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    1212"PO-Revision-Date: 2018-04-14 17:28+0200\n"
    1313"Last-Translator: EMAIL@ADDRESS\n"
     
    24212421#: includes/post.php:1416
    24222422#, fuzzy, php-format
    2423 msgid "%s %d more"
     2423msgid "%d more"
    24242424msgstr "et %d plus"
    24252425
     
    66516651
    66526652#, fuzzy
     6653#~ msgid "%s %d more"
     6654#~ msgstr "et %d plus"
     6655
     6656#, fuzzy
    66536657#~ msgid "Guest Author Duplication."
    66546658#~ msgstr "Auteur acronyme"
  • molongui-authorship/trunk/i18n/molongui-authorship-nl_NL.po

    r3229540 r3234936  
    33"Project-Id-Version: Molongui Authorship\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     5"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    66"PO-Revision-Date: 2016-09-12 12:31+0100\n"
    77"Last-Translator: Amitzy <molongui@amitzy.com>\n"
     
    24522452#: includes/post.php:1416
    24532453#, php-format
    2454 msgid "%s %d more"
     2454msgid "%d more"
    24552455msgstr ""
    24562456
  • molongui-authorship/trunk/i18n/molongui-authorship-ru_RU.po

    r3229540 r3234936  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     11"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    1212"PO-Revision-Date: 2017-08-21 18:25+0200\n"
    1313"Last-Translator: <EMAIL@ADDRESS>\n"
     
    23242324#: includes/post.php:1416
    23252325#, php-format
    2326 msgid "%s %d more"
     2326msgid "%d more"
    23272327msgstr ""
    23282328
  • molongui-authorship/trunk/i18n/molongui-authorship-zh_CN.po

    r3229540 r3234936  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-01-27 13:40+0100\n"
     11"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    1212"PO-Revision-Date: 2017-08-21 18:25+0200\n"
    1313"Last-Translator: <EMAIL@ADDRESS>\n"
     
    23172317#: includes/post.php:1416
    23182318#, php-format
    2319 msgid "%s %d more"
     2319msgid "%d more"
    23202320msgstr ""
    23212321
  • molongui-authorship/trunk/i18n/molongui-authorship.pot

    r3231805 r3234936  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: molongui-authorship 5.0.10\n"
     9"Project-Id-Version: molongui-authorship 5.0.11\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-01-30 09:03+0100\n"
     11"POT-Creation-Date: 2025-02-04 18:21+0100\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    23182318#: includes/post.php:1416
    23192319#, php-format
    2320 msgid "%s %d more"
     2320msgid "%d more"
    23212321msgstr ""
    23222322
  • molongui-authorship/trunk/includes/post.php

    r3229540 r3234936  
    679679            ++$i;
    680680        }
    681         if ( $show_remaining and $count < $names_to_display )
    682         {
    683             $byline .= ' ' . sprintf( __( '%s %d more', 'molongui-authorship' ), $last_separator, $count - $names_to_display );
     681        if ( $show_remaining and $count > $names_to_display )
     682        {
     683            $byline .= $last_separator . sprintf( __( '%d more', 'molongui-authorship' ), $count - $names_to_display );
    684684        }
    685685        Debug::console_log( array( 'post_id' => $post_id, 'post_authors' => $post_authors, 'names_to_display' => $names_to_display, 'byline_authors' => $byline_authors, 'separator' => $separator, 'last_separator' => $last_separator, 'byline' => $byline ), "Byline information" );
  • molongui-authorship/trunk/molongui-authorship.php

    r3231805 r3234936  
    1313 * Plugin URI:        https://www.molongui.com/wordpress-plugin-post-authors
    1414 * 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.10
     15 * Version:           5.0.11
    1616 * Requires at least: 5.2
    1717 * Tested up to:      6.7
     
    4444final class MolonguiAuthorship
    4545{
    46     const VERSION = '5.0.10';
     46    const VERSION = '5.0.11';
    4747    use Singleton;
    4848    function __construct()
Note: See TracChangeset for help on using the changeset viewer.