Commit Graph

497 Commits

Author SHA1 Message Date
Mike Jolley 5feed3e0cc Merge branch 'master' into update/add-ext-object-cache-to-system-status 2018-02-19 14:39:31 +00:00
Mike Jolley 1631c8a09f Cancel button text 2018-02-13 19:21:52 +00:00
Mike Jolley e39b6950a8 Notice when regeneration is happening 2018-02-13 12:02:24 +00:00
Rodrigo Primo 2feacfb47a Display whether or not external object cache is enabled
This commit adds a new line to the section "WordPress environment" of the system status page to indicate whether or not WP external object cache is enabled.
2018-01-29 15:56:01 -02:00
Rodrigo Primo 75fc594013 Manually fix coding standard violations that can't be fixed with phpcbf 2018-01-29 15:55:43 -02:00
Rodrigo Primo a15ecc1601 Automatically fix coding standard violations using phpcbf 2018-01-29 15:53:54 -02:00
Mike Jolley d13dfa65c6 Remove unused code
Closes #18390
2018-01-09 09:33:16 +00:00
Claudiu Lodromanean 4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
Add product export row action hook
2017-12-21 06:02:56 -08:00
Luciano Amodio 865efa3736 Add product export row action hook
having this hook is possible to actually use the woocommerce_product_export_product_query_args filter

```
add_action('woocommerce_product_export_row', 'export_custom_product');
add_filter( 'woocommerce_product_export_product_query_args', 'export_product_query_args');

// https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handle_custom_query_var', 10, 2 );

function export_custom_product() {
  $args = [
    'show_option_all' =>  'Custom',
    'taxonomy'        =>  'pa_custom',
    'name'            =>  'custom',
    'orderby'         =>  'name',
    'order'           => 'ASC',
    'selected'        =>  isset($_REQUEST['custom']) ? $_REQUEST['custom'] : '',
    'show_count'      =>  true,
    'hide_empty'      =>  true,
    'menu_order'      => false
  ];
  ?>
  <tr>
    <th scope="row">
      <label for="custom">Filter by Custom</label>
    </th>
    <td>
      <?php wp_dropdown_categories($args); ?>
    </td>
  </tr>
  <?php
}

function export_product_query_args($args) {
  $args['custom'] = 'default';

  if ( ! empty( $_POST['form'] ) ) {
    $values = explode('=', $_POST['form']);
    if('custom' === $values[0]) {
      $args['custom'] = wp_unslash( $values[1] );
    }
  }

  return $args;
}

function handle_custom_query_var( $query, $query_vars ) {
  if ( ! empty( $query_vars['custom'] ) ) {
    $query['tax_query'][] = array(
      'taxonomy' => 'pa_ custom',
      'field' => 'id',
      'terms' => esc_attr( $query_vars['custom'] )
    );
  }

  return $query;
}
```
2017-12-20 20:13:10 +01:00
Claudio Sanches f40f3291f8 Fixed file log dates and implement better date formatting
Closes #18232
2017-12-19 15:38:50 -02:00
Mike Jolley d0db71c6c2 Flex grid for extension list 2017-12-08 13:23:08 +00:00
Jonathan Belcher 3bb55107e8 Fix placeholder comment 2017-12-07 12:04:25 -05:00
Jonathan Belcher b42004f7b3 Fix escaping 2017-12-06 16:48:30 -05:00
Jonathan Belcher b5c1025621 Fixes from code review 2017-12-06 12:02:09 -05:00
Jonathan Belcher f05ed543fa Fix css and add search query header 2017-12-05 11:15:09 -05:00
Jonathan Belcher 2c12dcfacd Merge Commit 2017-12-05 10:16:28 -05:00
Jonathan Belcher 66dbcdead6 Update for API changes 2017-12-05 10:06:58 -05:00
Jonathan Belcher 9983352d60 Account for user searching on featured tab 2017-11-29 14:50:38 -05:00
Jonathan Belcher 54e686c44e Change placeholder text in searchbar 2017-11-28 15:45:55 -05:00
Jonathan Belcher 2cd514ccb6 Clean up search bar spacing 2017-11-27 16:23:03 -05:00
Jonathan Belcher a549133a2e [WIP] Adds search functionality to extensions page 2017-11-27 16:11:55 -05:00
claudiulodro 99aefc91f3 Changes from feedback 2017-11-21 14:08:17 -08:00
claudiulodro 0390cf3e26 Bring up-to-date with master 2017-11-16 10:06:07 -08:00
claudiulodro 4ef2152881 Hide/set fields depending on whether managing stock 2017-11-15 14:10:06 -08:00
Mike Jolley 128b826791 Merge branch 'master' into tweak/order-screens
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	includes/admin/class-wc-admin-post-types.php
2017-11-15 13:36:13 +00:00
Mike Jolley 4245855625 self_admin_url for multisite compatibility
Fixes #17665
2017-11-13 12:09:13 +00:00
Claudio Sanches d0f191c363 Use table list search box and update form method to POST 2017-11-10 10:55:58 -02:00
Claudio Sanches fbf5117e05 Merge branch 'db-log-search' of https://github.com/seostudio/woocommerce into seostudio-db-log-search 2017-11-10 10:17:29 -02:00
Claudio Sanches 22232f29c7 Fixed PHPCompatibility issues
Closes #17625
2017-11-09 16:36:29 -02:00
Grzegorz Rola 9ae73bcc44 wp_unslash() needs to always comes first 2017-11-08 17:02:08 +01:00
Gerhard Potgieter c53543a4b3 input to button for submit in html-report-by-date.php 2017-11-07 10:38:18 +02:00
Gerhard Potgieter 2716f08d91 PHPCS fixes for html-report-by-date.php 2017-11-07 10:36:39 +02:00
Gerhard Potgieter 78251eaa47 input to button for submit in html-admin-settings.php 2017-11-07 10:32:12 +02:00
Gerhard Potgieter ddeee320ef input to button for submit in html-admin-page-status-logs.php 2017-11-07 10:30:41 +02:00
Gerhard Potgieter a9690b37f5 PHPCS fixes for html-admin-page-status-logs.php 2017-11-07 10:29:16 +02:00
Gerhard Potgieter f063aad89c input to button for submit in html-admin-page-product-export.php 2017-11-07 10:27:25 +02:00
Gerhard Potgieter 636a34630e PHPCS fixes for html-admin-page-export.php 2017-11-07 10:24:39 +02:00
Grzegorz Rola d8a6cc6eb2 Ability to search in DB logs. 2017-11-04 16:09:54 +01:00
Mike Jolley 8f37ea33ed Refactored into list table classes 2017-11-03 16:10:32 +00:00
Mike Jolley 9d2a493cea Prevent notice on settings page when accessing invalid tab
Closes #17367
2017-10-25 12:51:19 +01:00
Patrick Garman 05c27f0f70 Match the database sizes up with the right labels 2017-09-02 18:56:29 -05:00
Mike Jolley d58a09e76a Merge branch 'master' into helper-updates
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-08-30 21:22:48 +01:00
Mike Jolley fce69c3dad Fix status page padding 2017-08-30 15:39:54 +01:00
Konstantin Kovshenin b5f1692ff3 Helper: Unify update-count markup into a single helper method. 2017-08-30 17:19:06 +03:00
Lee Willis e3be6a12dd Check all plugins for presence in the untested plugins list, not just WooCommerce ones 2017-08-30 10:25:01 +01:00
Lee Willis 5400bbaf6d Use array_key_exists() instead of in_array() 2017-08-30 10:16:49 +01:00
Lee Willis cec5fef23c Flag untested extensions on the status report 2017-08-29 17:15:16 +01:00
Konstantin Kovshenin a3b08d6497 Merge remote-tracking branch 'origin/master' into helper-updates 2017-08-28 13:46:14 +03:00
Konstantin Kovshenin 578f25ebdc Helper: Don't display (0) in top navigation when no updates available. 2017-08-28 10:32:51 +03:00
Konstantin Kovshenin a41d5da411 Helper: Add update-count to the Extensions top nav menu. 2017-08-28 10:01:01 +03:00