Plugin Directory

Changeset 3036934

Timestamp:
02/16/2024 05:04:02 PM (6 months ago)
Author:
inc2734
Message:

Version up. v20.4.3

Location:
snow-monkey-blocks/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • snow-monkey-blocks/trunk/dist/blocks/recent-posts/view.php

    r3026781 r3036934  
    8484// phpcs:enable
    8585
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
    86102if ( $instance['taxonomy'] ) {
    87103    add_filter(
    88104        'snow_monkey_recent_posts_widget_args_' . $widget_number,
    89         function ( $args ) use ( $instance ) {
    90             $taxonomy_arr = explode( '@', $instance['taxonomy'] );
    91 
    92             $args['tax_query'] = array_merge(
    93                 isset( $args['tax_query'] ) ? $args['tax_query'] : array(),
    94                 array(
    95                     array(
    96                         'taxonomy' => $taxonomy_arr[0],
    97                         'terms'    => $taxonomy_arr[1],
    98                         'field'    => 'term_id',
    99                     ),
    100                 )
    101             );
    102 
    103             return $args;
    104         },
     105        $add_tax_query,
    105106        9
    106107    );
    107108}
    108109
     110
     111
     112
     113
     114
     115
     116
     117
    109118if ( $instance['authors'] ) {
    110119    add_filter(
    111120        'snow_monkey_recent_posts_widget_args_' . $widget_number,
    112         function ( $args ) use ( $instance ) {
    113             $args['author__in'] = array_merge(
    114                 isset( $args['author__in'] ) ? $args['author__in'] : array(),
    115                 $instance['authors']
    116             );
    117 
    118             return $args;
    119         },
     121        $add_authors_query,
    120122        9
    121123    );
     
    131133
    132134$widget = ob_get_clean();
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
    133147
    134148if ( empty( $widget ) ) {
  • snow-monkey-blocks/trunk/readme.txt

    r3030085 r3036934  
    33Donate link: https://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
    44Tags: gutenberg, block, blocks, editor, gutenberg blocks, page builder, landing page, microcopy, steps, call to action
    5 Stable tag: 20.4.2
     5Stable tag: 20.4.
    66Requires at least: 6.3
    77Tested up to: 6.4
     
    117117
    118118== Changelog ==
     119
     120
     121
    119122
    120123= 20.4.2 =
  • snow-monkey-blocks/trunk/snow-monkey-blocks.php

    r3030085 r3036934  
    22/**
    33 * Plugin name: Snow Monkey Blocks
    4  * Version: 20.4.2
     4 * Version: 20.4.
    55 * Description: Gutenberg blocks collection made by MonkeyWrench.
    66 * Author: inc2734
  • snow-monkey-blocks/trunk/src/blocks/recent-posts/view.php

    r3026781 r3036934  
    8484// phpcs:enable
    8585
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
    86102if ( $instance['taxonomy'] ) {
    87103    add_filter(
    88104        'snow_monkey_recent_posts_widget_args_' . $widget_number,
    89         function ( $args ) use ( $instance ) {
    90             $taxonomy_arr = explode( '@', $instance['taxonomy'] );
    91 
    92             $args['tax_query'] = array_merge(
    93                 isset( $args['tax_query'] ) ? $args['tax_query'] : array(),
    94                 array(
    95                     array(
    96                         'taxonomy' => $taxonomy_arr[0],
    97                         'terms'    => $taxonomy_arr[1],
    98                         'field'    => 'term_id',
    99                     ),
    100                 )
    101             );
    102 
    103             return $args;
    104         },
     105        $add_tax_query,
    105106        9
    106107    );
    107108}
    108109
     110
     111
     112
     113
     114
     115
     116
     117
    109118if ( $instance['authors'] ) {
    110119    add_filter(
    111120        'snow_monkey_recent_posts_widget_args_' . $widget_number,
    112         function ( $args ) use ( $instance ) {
    113             $args['author__in'] = array_merge(
    114                 isset( $args['author__in'] ) ? $args['author__in'] : array(),
    115                 $instance['authors']
    116             );
    117 
    118             return $args;
    119         },
     121        $add_authors_query,
    120122        9
    121123    );
     
    131133
    132134$widget = ob_get_clean();
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
    133147
    134148if ( empty( $widget ) ) {
  • snow-monkey-blocks/trunk/vendor/composer/installed.php

    r2991441 r3036934  
    44        'pretty_version' => '1.0.0+no-version-set',
    55        'version' => '1.0.0.0',
    6         'reference' => NULL,
     6        'reference' => ,
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => '1.0.0+no-version-set',
    1515            'version' => '1.0.0.0',
    16             'reference' => NULL,
     16            'reference' => ,
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.