Plugin Directory

Changeset 3236250


Ignore:
Timestamp:
02/06/2025 07:53:37 PM (14 months ago)
Author:
Molongui
Message:

5.0.12 (2025-02-06)

  • Fixed: Incorrect author meta information displayed in the author box when profile fields are missing.
Location:
molongui-authorship/trunk
Files:
14 edited

Legend:

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

    r3234936 r3236250  
    197197
    198198<strong>Important</strong>: If you use a caching plugin, please clear your cache after updating any plugins.
     199
     200= 5.0.12 (2025-02-06) =
     201
     202* Fixed: Incorrect author meta information displayed in the author box when profile fields are missing.
    199203
    200204= 5.0.11 (2025-02-04) =
  • molongui-authorship/trunk/changelog.txt

    r3234936 r3236250  
    22
    33== Changelog ==
     4
     5= 5.0.12 (2025-02-06) =
     6
     7* Fixed: Incorrect author meta information displayed in the author box when profile fields are missing.
    48
    59= 5.0.11 (2025-02-04) =
  • molongui-authorship/trunk/i18n/molongui-authorship-ar.po

    r3234936 r3236250  
    33"Project-Id-Version: Molongui Authorship\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     5"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    66"PO-Revision-Date: 2017-08-23 13:23+0100\n"
    77"Last-Translator: Amitzy <molongui@amitzy.com>\n"
     
    24852485#: views/admin/editor/parts/html-editor-tab-content.php:557
    24862486#: views/admin/editor/parts/html-editor-tab-content.php:558
    2487 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2487#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    24882488msgid "at"
    24892489msgstr "في"
     
    24922492#: views/admin/editor/parts/html-editor-tab-content.php:568
    24932493#: views/admin/editor/parts/html-editor-tab-content.php:569
    2494 #: views/author-box/parts/html-meta.php:58
     2494#: views/author-box/parts/html-meta.php:60
    24952495#: views/guest-author/html-admin-profile-metabox.php:74
    24962496msgid "Website"
     
    25002500#: views/admin/editor/parts/html-editor-tab-content.php:579
    25012501#: views/admin/editor/parts/html-editor-tab-content.php:580
    2502 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2502#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    25032503msgid "+ posts"
    25042504msgstr "+ مقالات"
     
    25072507#: views/admin/editor/parts/html-editor-tab-content.php:590
    25082508#: views/admin/editor/parts/html-editor-tab-content.php:591
    2509 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2509#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    25102510msgid "Bio ⮌"
    25112511msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship-de_DE.po

    r3234936 r3236250  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     11"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    1212"PO-Revision-Date: 2017-08-21 18:25+0200\n"
    1313"Last-Translator: <EMAIL@ADDRESS>\n"
     
    23282328#: views/admin/editor/parts/html-editor-tab-content.php:557
    23292329#: views/admin/editor/parts/html-editor-tab-content.php:558
    2330 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2330#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    23312331msgid "at"
    23322332msgstr ""
     
    23352335#: views/admin/editor/parts/html-editor-tab-content.php:568
    23362336#: views/admin/editor/parts/html-editor-tab-content.php:569
    2337 #: views/author-box/parts/html-meta.php:58
     2337#: views/author-box/parts/html-meta.php:60
    23382338#: views/guest-author/html-admin-profile-metabox.php:74
    23392339msgid "Website"
     
    23432343#: views/admin/editor/parts/html-editor-tab-content.php:579
    23442344#: views/admin/editor/parts/html-editor-tab-content.php:580
    2345 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2345#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    23462346msgid "+ posts"
    23472347msgstr ""
     
    23502350#: views/admin/editor/parts/html-editor-tab-content.php:590
    23512351#: views/admin/editor/parts/html-editor-tab-content.php:591
    2352 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2352#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    23532353msgid "Bio ⮌"
    23542354msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship-es_ES.po

    r3234936 r3236250  
    33"Project-Id-Version: Molongui Authorship\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     5"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    66"PO-Revision-Date: 2020-10-21 22:40+0200\n"
    77"Last-Translator: Molongui\n"
     
    24552455#: views/admin/editor/parts/html-editor-tab-content.php:557
    24562456#: views/admin/editor/parts/html-editor-tab-content.php:558
    2457 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2457#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    24582458msgid "at"
    24592459msgstr "en"
     
    24622462#: views/admin/editor/parts/html-editor-tab-content.php:568
    24632463#: views/admin/editor/parts/html-editor-tab-content.php:569
    2464 #: views/author-box/parts/html-meta.php:58
     2464#: views/author-box/parts/html-meta.php:60
    24652465#: views/guest-author/html-admin-profile-metabox.php:74
    24662466msgid "Website"
     
    24702470#: views/admin/editor/parts/html-editor-tab-content.php:579
    24712471#: views/admin/editor/parts/html-editor-tab-content.php:580
    2472 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2472#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    24732473msgid "+ posts"
    24742474msgstr "+ posts"
     
    24772477#: views/admin/editor/parts/html-editor-tab-content.php:590
    24782478#: views/admin/editor/parts/html-editor-tab-content.php:591
    2479 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2479#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    24802480msgid "Bio ⮌"
    24812481msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship-fr_FR.po

    r3234936 r3236250  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     11"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    1212"PO-Revision-Date: 2018-04-14 17:28+0200\n"
    1313"Last-Translator: EMAIL@ADDRESS\n"
     
    24312431#: views/admin/editor/parts/html-editor-tab-content.php:557
    24322432#: views/admin/editor/parts/html-editor-tab-content.php:558
    2433 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2433#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    24342434msgid "at"
    24352435msgstr "à"
     
    24382438#: views/admin/editor/parts/html-editor-tab-content.php:568
    24392439#: views/admin/editor/parts/html-editor-tab-content.php:569
    2440 #: views/author-box/parts/html-meta.php:58
     2440#: views/author-box/parts/html-meta.php:60
    24412441#: views/guest-author/html-admin-profile-metabox.php:74
    24422442msgid "Website"
     
    24462446#: views/admin/editor/parts/html-editor-tab-content.php:579
    24472447#: views/admin/editor/parts/html-editor-tab-content.php:580
    2448 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2448#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    24492449msgid "+ posts"
    24502450msgstr "Plus de publications"
     
    24532453#: views/admin/editor/parts/html-editor-tab-content.php:590
    24542454#: views/admin/editor/parts/html-editor-tab-content.php:591
    2455 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2455#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    24562456msgid "Bio ⮌"
    24572457msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship-nl_NL.po

    r3234936 r3236250  
    33"Project-Id-Version: Molongui Authorship\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     5"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    66"PO-Revision-Date: 2016-09-12 12:31+0100\n"
    77"Last-Translator: Amitzy <molongui@amitzy.com>\n"
     
    24622462#: views/admin/editor/parts/html-editor-tab-content.php:557
    24632463#: views/admin/editor/parts/html-editor-tab-content.php:558
    2464 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2464#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    24652465msgid "at"
    24662466msgstr "bij"
     
    24692469#: views/admin/editor/parts/html-editor-tab-content.php:568
    24702470#: views/admin/editor/parts/html-editor-tab-content.php:569
    2471 #: views/author-box/parts/html-meta.php:58
     2471#: views/author-box/parts/html-meta.php:60
    24722472#: views/guest-author/html-admin-profile-metabox.php:74
    24732473msgid "Website"
     
    24772477#: views/admin/editor/parts/html-editor-tab-content.php:579
    24782478#: views/admin/editor/parts/html-editor-tab-content.php:580
    2479 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2479#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    24802480msgid "+ posts"
    24812481msgstr "+ berichten"
     
    24842484#: views/admin/editor/parts/html-editor-tab-content.php:590
    24852485#: views/admin/editor/parts/html-editor-tab-content.php:591
    2486 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2486#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    24872487msgid "Bio ⮌"
    24882488msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship-ru_RU.po

    r3234936 r3236250  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     11"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    1212"PO-Revision-Date: 2017-08-21 18:25+0200\n"
    1313"Last-Translator: <EMAIL@ADDRESS>\n"
     
    23342334#: views/admin/editor/parts/html-editor-tab-content.php:557
    23352335#: views/admin/editor/parts/html-editor-tab-content.php:558
    2336 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2336#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    23372337msgid "at"
    23382338msgstr ""
     
    23412341#: views/admin/editor/parts/html-editor-tab-content.php:568
    23422342#: views/admin/editor/parts/html-editor-tab-content.php:569
    2343 #: views/author-box/parts/html-meta.php:58
     2343#: views/author-box/parts/html-meta.php:60
    23442344#: views/guest-author/html-admin-profile-metabox.php:74
    23452345msgid "Website"
     
    23492349#: views/admin/editor/parts/html-editor-tab-content.php:579
    23502350#: views/admin/editor/parts/html-editor-tab-content.php:580
    2351 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2351#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    23522352msgid "+ posts"
    23532353msgstr ""
     
    23562356#: views/admin/editor/parts/html-editor-tab-content.php:590
    23572357#: views/admin/editor/parts/html-editor-tab-content.php:591
    2358 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2358#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    23592359msgid "Bio ⮌"
    23602360msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship-zh_CN.po

    r3234936 r3236250  
    99"Project-Id-Version: molongui-authorship 2.0.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     11"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    1212"PO-Revision-Date: 2017-08-21 18:25+0200\n"
    1313"Last-Translator: <EMAIL@ADDRESS>\n"
     
    23272327#: views/admin/editor/parts/html-editor-tab-content.php:557
    23282328#: views/admin/editor/parts/html-editor-tab-content.php:558
    2329 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2329#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    23302330msgid "at"
    23312331msgstr ""
     
    23342334#: views/admin/editor/parts/html-editor-tab-content.php:568
    23352335#: views/admin/editor/parts/html-editor-tab-content.php:569
    2336 #: views/author-box/parts/html-meta.php:58
     2336#: views/author-box/parts/html-meta.php:60
    23372337#: views/guest-author/html-admin-profile-metabox.php:74
    23382338msgid "Website"
     
    23422342#: views/admin/editor/parts/html-editor-tab-content.php:579
    23432343#: views/admin/editor/parts/html-editor-tab-content.php:580
    2344 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2344#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    23452345msgid "+ posts"
    23462346msgstr ""
     
    23492349#: views/admin/editor/parts/html-editor-tab-content.php:590
    23502350#: views/admin/editor/parts/html-editor-tab-content.php:591
    2351 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2351#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    23522352msgid "Bio ⮌"
    23532353msgstr ""
  • molongui-authorship/trunk/i18n/molongui-authorship.pot

    r3234936 r3236250  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: molongui-authorship 5.0.11\n"
     9"Project-Id-Version: molongui-authorship 5.0.12\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-02-04 18:21+0100\n"
     11"POT-Creation-Date: 2025-02-06 20:41+0100\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    23282328#: views/admin/editor/parts/html-editor-tab-content.php:557
    23292329#: views/admin/editor/parts/html-editor-tab-content.php:558
    2330 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:98
     2330#: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101
    23312331msgid "at"
    23322332msgstr ""
     
    23352335#: views/admin/editor/parts/html-editor-tab-content.php:568
    23362336#: views/admin/editor/parts/html-editor-tab-content.php:569
    2337 #: views/author-box/parts/html-meta.php:58
     2337#: views/author-box/parts/html-meta.php:60
    23382338#: views/guest-author/html-admin-profile-metabox.php:74
    23392339msgid "Website"
     
    23432343#: views/admin/editor/parts/html-editor-tab-content.php:579
    23442344#: views/admin/editor/parts/html-editor-tab-content.php:580
    2345 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:66
     2345#: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67
    23462346msgid "+ posts"
    23472347msgstr ""
     
    23502350#: views/admin/editor/parts/html-editor-tab-content.php:590
    23512351#: views/admin/editor/parts/html-editor-tab-content.php:591
    2352 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:70
     2352#: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71
    23532353msgid "Bio ⮌"
    23542354msgstr ""
  • molongui-authorship/trunk/includes/author-box.php

    r3231805 r3236250  
    580580        }
    581581        return apply_filters( 'molongui_authorship/add_author_box', $add );
     582    }
     583    private function should_display()
     584    {
     585        $display   = true;
     586        $post      = Post::get();
     587        $post_type = Post::retrieve_post_type( $post );
     588        if ( !in_array( $post_type, Settings::get_post_types_with_author_box() ) )
     589        {
     590            $display = false;
     591            Debug::console_log( null, sprintf(
     592                "Author box not displayed: current post type (%s) doesn't support the author box feature.",
     593                $post_type
     594            ));
     595        }
     596        elseif ( 'hide' === get_post_meta( $post->ID, '_molongui_author_box_display', true ) )
     597        {
     598            $display = false;
     599            Debug::console_log( null, sprintf(
     600                "Author box not displayed: current post (#%s) is configured to not display the author box.",
     601                $post->ID
     602            ));
     603        }
     604        elseif ( 'default' === get_post_meta( $post->ID, '_molongui_author_box_display', true )  )
     605        {
     606            if ( in_array( $post_type, Settings::get_post_types_with_author_box( 'manual' ) ) )
     607            {
     608                if ( !Settings::get( 'author_box_auto_display_override', true )
     609                    and !in_array( $post_type, Settings::get_post_types_with_author_box( 'auto' ) ) )
     610                {
     611                    $display = false;
     612                    Debug::console_log( null, sprintf(
     613                        "Author box not displayed: current post type (%s) is configured to display the author box only if the post (#%s) has the display setting set to 'Show'.",
     614                        $post_type,
     615                        $post->ID
     616                    ));
     617                }
     618            }
     619        }
     620        return apply_filters( 'molongui_authorship/display_author_box', $display );
    582621    }
    583622    public function get_markup()
     
    706745        return apply_filters( 'molongui_authorship/author_box_markup', ob_get_clean(), $profiles );
    707746    }
    708     private function should_display()
    709     {
    710         $display   = true;
    711         $post      = Post::get();
    712         $post_type = Post::retrieve_post_type( $post );
    713         if ( !in_array( $post_type, Settings::get_post_types_with_author_box() ) )
    714         {
    715             $display = false;
    716             Debug::console_log( null, sprintf(
    717                 "Author box not displayed: current post type (%s) doesn't support the author box feature.",
    718                 $post_type
    719             ));
    720         }
    721         elseif ( 'hide' === get_post_meta( $post->ID, '_molongui_author_box_display', true ) )
    722         {
    723             $display = false;
    724             Debug::console_log( null, sprintf(
    725                 "Author box not displayed: current post (#%s) is configured to not display the author box.",
    726                 $post->ID
    727             ));
    728         }
    729         elseif ( 'default' === get_post_meta( $post->ID, '_molongui_author_box_display', true )  )
    730         {
    731             if ( in_array( $post_type, Settings::get_post_types_with_author_box( 'manual' ) ) )
    732             {
    733                 if ( !Settings::get( 'author_box_auto_display_override', true )
    734                      and !in_array( $post_type, Settings::get_post_types_with_author_box( 'auto' ) ) )
    735                 {
    736                     $display = false;
    737                     Debug::console_log( null, sprintf(
    738                         "Author box not displayed: current post type (%s) is configured to display the author box only if the post (#%s) has the display setting set to 'Show'.",
    739                         $post_type,
    740                         $post->ID
    741                     ));
    742                 }
    743             }
    744         }
    745         return apply_filters( 'molongui_authorship/display_author_box', $display );
    746     }
    747747    public function render()
    748748    {
  • molongui-authorship/trunk/molongui-authorship.php

    r3234936 r3236250  
    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.11
     15 * Version:           5.0.12
    1616 * Requires at least: 5.2
    1717 * Tested up to:      6.7
     
    4444final class MolonguiAuthorship
    4545{
    46     const VERSION = '5.0.11';
     46    const VERSION = '5.0.12';
    4747    use Singleton;
    4848    function __construct()
  • molongui-authorship/trunk/views/author-box/parts/html-meta.php

    r3222089 r3236250  
    1111$nofollow  = ( $options['social_profiles_nofollow'] ? 'rel="nofollow"' : '' );
    1212$separator = sprintf( '&nbsp;%s&nbsp;', '<span class="m-a-box-meta-divider">'.$options['author_box_meta_divider'].'</span>' );
     13
     14$author_job = $author_company = $author_phone = $author_email = $author_web = $author_meta = '';
    1315if ( !empty( $profile['job'] ) )
    1416{
     
    6668    <?php $author_more = ob_get_clean();
    6769}
     70
     71$showing_job = $showing_company = $showing_phone = $showing_email = $showing_web = $showing_more = false;
    6872if ( !empty( $author_job ) )
    6973{
  • molongui-authorship/trunk/views/author-box/parts/html-socialmedia.php

    r3231805 r3236250  
    1111    $networks  = Social::get( 'enabled' );
    1212    $_networks = array();
    13     if ( $profile['show_icon_web'] )   $networks['web']   = array ( 'name' => 'Website', 'url' => 'https://www.example.com/', 'color' => '#333', 'premium' => false );
    14     if ( $profile['show_icon_mail'] )  $networks['mail']  = array ( 'name' => 'E-mail',  'url' => 'your_name@example.com',    'color' => '#333', 'premium' => false );
    15     if ( $profile['show_icon_phone'] ) $networks['phone'] = array ( 'name' => 'Phone',   'url' => '123456789',                'color' => '#333', 'premium' => false );
     13    if ( $profile['show_icon_web'] )   $networks['web']   = array( 'name' => 'Website', 'url' => 'https://www.example.com/', 'color' => '#333', 'premium' => false );
     14    if ( $profile['show_icon_mail'] )  $networks['mail']  = array( 'name' => 'E-mail',  'url' => 'your_name@example.com',    'color' => '#333', 'premium' => false );
     15    if ( $profile['show_icon_phone'] ) $networks['phone'] = array( 'name' => 'Phone',   'url' => '123456789',                'color' => '#333', 'premium' => false );
    1616    foreach ( $networks as $id => $network )
    1717    {
Note: See TracChangeset for help on using the changeset viewer.