Esse exemplo mostra todos os arquivos alterados nos últimos dois dias, sem repetir:
git log --pretty=format: --name-only --since="2 days ago" | sort | uniq| <?php | |
| /** | |
| * Plugin Name: WooCommerce - List Products by Attributes | |
| * Plugin URI: http://www.remicorson.com/list-woocommerce-products-by-attributes/ | |
| * Description: List WooCommerce products by attributes using a shortcode, ex: [woo_products_by_attributes attribute="colour" values="red,black" per_page="5"] | |
| * Version: 1.0 | |
| * Author: Remi Corson | |
| * Author URI: http://remicorson.com | |
| * Requires at least: 3.5 | |
| * Tested up to: 3.5 |
| { | |
| "curly": true, | |
| "eqeqeq": true, | |
| "immed": true, | |
| "latedef": true, | |
| "newcap": true, | |
| "noarg": true, | |
| "sub": true, | |
| "undef": true, | |
| "boss": true, |
| // Query arguments | |
| $popular_args = array( | |
| 'posts_per_page' => $size, | |
| 'meta_key' => '_base_popular_posts_count', | |
| 'orderby' => 'meta_value_num' | |
| 'year' => date('Y'), // Current year | |
| 'monthnum' => date('n') // Current month | |
| ); |