Plugin Directory

Changeset 3061184


Ignore:
Timestamp:
03/29/2024 02:03:43 PM (2 years ago)
Author:
endzevich
Message:

Version: 2.0.7

Location:
getwid/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • getwid/trunk/changelog.txt

    r3022982 r3061184  
     1= 2.0.0, Aug 15 2023 =
     2* Added full support of WordPress Full Site Editing.
     3* Improved compatibility with the Gutenberg plugin 16.3.0.
     4
    15= 1.9.1, Jul 25 2023 =
    26* Fixed an issue that prevented custom post types from being displayed in the post-based blocks.
  • getwid/trunk/getwid.php

    r3055393 r3061184  
    44 * Plugin URI: https://motopress.com/products/getwid/
    55 * Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
    6  * Version: 2.0.6
     6 * Version: 2.0.7
    77 * Author: MotoPress
    88 * Author URI: https://motopress.com/
  • getwid/trunk/includes/blocks/custom-post-type.php

    r2855224 r3061184  
    272272                        }
    273273
     274                        $paged = is_front_page() ? get_query_var( 'page', 1 ) : get_query_var( 'paged', 1 );
     275
    274276                        $pagination_args = array(
    275277                            'base'         => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ),
    276278                            'total'        => $total_pages,
    277                             'current'      => max( 1, get_query_var( 'paged' ) ),
     279                            'current'      => max( 1, $paged ),
    278280                            'format'       => '?paged=%#%',
    279281                            'show_all'     => false,
  • getwid/trunk/includes/functions.php

    r2694970 r3061184  
    285285
    286286        $query_args = array(
    287             'posts_per_page'   => $attributes['postsToShow'],
    288             'ignore_sticky_posts' => 1,
    289             'post_status'      => 'publish',
    290             'order'            => $attributes['order'],
    291             'orderby'          => $attributes['orderBy'],
    292         );
     287            'posts_per_page'        => $attributes['postsToShow'],
     288            'ignore_sticky_posts'   => 1,
     289            'post_status'           => 'publish',
     290            'order'                 => $attributes['order'],
     291            'orderby'               => $attributes['orderBy'],
     292        );
    293293
    294294        if ( isset($attributes['ignoreSticky']) ){
     
    296296        }
    297297
    298         $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;
     298
     299        $paged = is_front_page() ? get_query_var( 'page', 1 ) : get_query_var( 'paged', 1 );
     300
    299301        if ( isset($attributes['pagination']) && $attributes['pagination'] ){
    300302            $query_args['paged'] = $paged;
  • getwid/trunk/readme.txt

    r3055393 r3061184  
    66Tested up to: 6.4
    77Requires PHP: 5.6
    8 Stable tag: 2.0.6
     8Stable tag: 2.0.7
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    226226== Changelog ==
    227227
     228= 2.0.7, Mar 29 2024 =
     229* Fixed an issue where pagination in post-based blocks didn't work correctly on the static front page.
     230
    228231= 2.0.6, Mar 20 2024 =
    229232* Improved Contact Form block - added Group and Columns to allowed child blocks list.
     
    247250* Fixed an issue when the Table block didn't work correctly in WordPress 6.3.
    248251
    249 = 2.0.0, Aug 15 2023 =
    250 * Added full support of WordPress Full Site Editing.
    251 * Improved compatibility with the Gutenberg plugin 16.3.0.
    252252
    253253--------
Note: See TracChangeset for help on using the changeset viewer.