Changeset 3036934
- Timestamp:
- 02/16/2024 05:04:02 PM (6 months ago)
- Location:
- snow-monkey-blocks/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
snow-monkey-blocks/trunk/dist/blocks/recent-posts/view.php
r3026781 r3036934 84 84 // phpcs:enable 85 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 86 102 if ( $instance['taxonomy'] ) { 87 103 add_filter( 88 104 '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, 105 106 9 106 107 ); 107 108 } 108 109 110 111 112 113 114 115 116 117 109 118 if ( $instance['authors'] ) { 110 119 add_filter( 111 120 '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, 120 122 9 121 123 ); … … 131 133 132 134 $widget = ob_get_clean(); 135 136 137 138 139 140 141 142 143 144 145 146 133 147 134 148 if ( empty( $widget ) ) { -
snow-monkey-blocks/trunk/readme.txt
r3030085 r3036934 3 3 Donate link: https://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40 4 4 Tags: gutenberg, block, blocks, editor, gutenberg blocks, page builder, landing page, microcopy, steps, call to action 5 Stable tag: 20.4. 25 Stable tag: 20.4. 6 6 Requires at least: 6.3 7 7 Tested up to: 6.4 … … 117 117 118 118 == Changelog == 119 120 121 119 122 120 123 = 20.4.2 = -
snow-monkey-blocks/trunk/snow-monkey-blocks.php
r3030085 r3036934 2 2 /** 3 3 * Plugin name: Snow Monkey Blocks 4 * Version: 20.4. 24 * Version: 20.4. 5 5 * Description: Gutenberg blocks collection made by MonkeyWrench. 6 6 * Author: inc2734 -
snow-monkey-blocks/trunk/src/blocks/recent-posts/view.php
r3026781 r3036934 84 84 // phpcs:enable 85 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 86 102 if ( $instance['taxonomy'] ) { 87 103 add_filter( 88 104 '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, 105 106 9 106 107 ); 107 108 } 108 109 110 111 112 113 114 115 116 117 109 118 if ( $instance['authors'] ) { 110 119 add_filter( 111 120 '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, 120 122 9 121 123 ); … … 131 133 132 134 $widget = ob_get_clean(); 135 136 137 138 139 140 141 142 143 144 145 146 133 147 134 148 if ( empty( $widget ) ) { -
snow-monkey-blocks/trunk/vendor/composer/installed.php
r2991441 r3036934 4 4 'pretty_version' => '1.0.0+no-version-set', 5 5 'version' => '1.0.0.0', 6 'reference' => NULL,6 'reference' => , 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => '1.0.0+no-version-set', 15 15 'version' => '1.0.0.0', 16 'reference' => NULL,16 'reference' => , 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.