Plugin Directory

Changeset 3254329


Ignore:
Timestamp:
03/11/2025 08:14:20 PM (13 months ago)
Author:
Molongui
Message:

5.0.15 (2025-03-11)

  • Fixed: Co-authored posts are now listed when using Elementor's Posts widget with the author filter.
  • Fixed: Fatal error caused by missing quotes when the Jetpack plugin was active.
Location:
molongui-authorship/trunk
Files:
6 edited

Legend:

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

    r3238650 r3254329  
    197197
    198198<strong>Important</strong>: If you use a caching plugin, please clear your cache after updating any plugins.
     199
     200= 5.0.15 (2025-03-11) =
     201
     202* Fixed: Co-authored posts are now listed when using Elementor's Posts widget with the author filter.
     203* Fixed: Fatal error caused by missing quotes when the Jetpack plugin was active.
    199204
    200205= 5.0.14 (2025-02-11) =
  • molongui-authorship/trunk/changelog.txt

    r3238650 r3254329  
    22
    33== Changelog ==
     4
     5= 5.0.15 (2025-03-11) =
     6
     7* Fixed: Co-authored posts are now listed when using Elementor's Posts widget with the author filter.
     8* Fixed: Fatal error caused by missing quotes when the Jetpack plugin was active.
    49
    510= 5.0.14 (2025-02-11) =
  • molongui-authorship/trunk/i18n/molongui-authorship.pot

    r3238650 r3254329  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: molongui-authorship 5.0.14\n"
     9"Project-Id-Version: molongui-authorship 5.0.15\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2025-02-11 15:54+0100\n"
     11"POT-Creation-Date: 2025-03-11 21:07+0100\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • molongui-authorship/trunk/includes/compat/plugins/elementor-pro.php

    r3231805 r3254329  
    2626        add_filter( '_authorship/get_user_by/aim', array( $this, 'filter_byline_aim' ), 10, 4 );
    2727        add_filter( '_authorship/posts_where', array( $this, 'display_coauthored_in_loop_grid' ) );
     28        add_filter( 'elementor/query/query_args', array( $this, 'fix_posts_by_author_for_posts_widget' ), 10, 2 );
    2829        add_filter( 'molongui_authorship/co_authors_separator'     , array( Helpers::class, 'space_to_nbsp' ) );
    2930        add_filter( 'molongui_authorship/co_authors_last_separator', array( Helpers::class, 'space_to_nbsp' ) );
     
    6465        return $default;
    6566    }
     67    public function fix_posts_by_author_for_posts_widget( $query_args, $widget )
     68    {
     69        if ( 'posts' === $widget->get_name() )
     70        {
     71            if ( !empty( $query_args['author__in'] ) and is_array( $query_args['author__in'] ) and !empty( $query_args['author__in'][0] ) )
     72            {
     73                $author_id = $query_args['author__in'][0];
     74                $query_args['author__in'] = '';
     75                $query_args['meta_query'] = array
     76                (
     77                    array
     78                    (
     79                        'key'     => '_molongui_author',
     80                        'value'   => 'user-'.$author_id,
     81                        'compare' => '==',
     82                    ),
     83                );
     84            }
     85        }
     86
     87        return $query_args;
     88    }
    6689
    6790} // class
  • molongui-authorship/trunk/includes/compat/plugins/jetpack.php

    r3222089 r3254329  
    22
    33defined( 'ABSPATH' ) or exit; // Exit if accessed directly
    4 if ( defined( JETPACK__VERSION ) and version_compare( JETPACK__VERSION, '9.1.0', '>=' ) )
     4if ( defined( 'JETPACK__VERSION' ) and version_compare( 'JETPACK__VERSION', '9.1.0', '>=' ) )
    55{
    66    add_filter( 'jetpack_content_options_featured_image_exclude_cpt', function( $excluded_post_types )
  • molongui-authorship/trunk/molongui-authorship.php

    r3238650 r3254329  
    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.14
     15 * Version:           5.0.15
    1616 * Requires at least: 5.2
    1717 * Tested up to:      6.7
     
    4444final class MolonguiAuthorship
    4545{
    46     const VERSION = '5.0.14';
     46    const VERSION = '5.0.15';
    4747    use Singleton;
    4848    function __construct()
Note: See TracChangeset for help on using the changeset viewer.