Skip to content
Permalink
Branch: master
Commits on Dec 20, 2018
  1. Revert "Fix PHPCS violations automatically using PHPCBF"

    rodrigoprimo committed Dec 20, 2018
    This reverts commit 220e1d7.
  2. Fix orders list in the admin

    rodrigoprimo authored and claudiosanches committed Dec 20, 2018
    WP 5.0.2, which was released yesterday, sets `$query_vars['post_status']` to an empty string instead of leaving it unset (https://core.trac.wordpress.org/ticket/45719 and https://core.trac.wordpress.org/changeset/44185). This change broke the WC orders list in the admin when listing orders of all post statuses as we were checking if `$query_vars['post_status']` was not set to add all order statuses to this variable (https://github.com/woocommerce/woocommerce/blob/125eaaf241aabc9d8c1bd77503c3e04da6082419/includes/admin/list-tables/class-wc-admin-list-table-orders.php#L799).
    
    To workaround this problem, this commit changes the check to verify if `$query_vars['post_status']` is empty instead of verifying if it is not set.
Commits on Nov 28, 2018
  1. fix phpcs error

    rodrigoprimo authored and claudiulodro committed Nov 22, 2018
Commits on Oct 31, 2018
  1. Use array instead of string to define class for address line 2 input …

    rodrigoprimo authored and claudiulodro committed Oct 30, 2018
    …on checkout
    
    Doing this to be consistent with the other instances where a class is added to one of the checkout fields and thus make it easier for third-parties to add classes to checkout fields.
  2. Reapply change made in c765ce6

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    Reverting commit 61c7abc in commit ece9f02776626e7bff03ee635b1ce6129e1daae3, overrode a unrelated change made to the same code in another PR by commit c765ce6. This commit simply reapplies this change.
  3. Revert "First pass at using post_author instead of the post meta '_cu…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …stomer_user'"
    
    This reverts commit 61c7abc.
  4. Revert "Set post_author to 0 for refund orders"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit ad43044.
  5. Revert "Make sure post_author is used only after WC 3.3.0 DB upgrade …

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …routine is executed"
    
    This reverts commit 997a6fa.
  6. Revert "Bump WC version to 3.4.0"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit 7f43c39.
  7. Revert "Add filter to list of post_types used to build the query to c…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …opy _customer_user to post_author"
    
    This reverts commit 1f39f7d.
  8. Revert "Reposition wc_update_340_order_customer_id() function"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit 35998e5.
  9. Revert "Migrate _customer_user to post_author in batches"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit 4123cc6.
  10. Revert "Punt to WC version 3.5.0"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit ccf10f6.
  11. Revert "Set post_author to 0 on all orders that belong to a deleted c…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …ustomer"
    
    This reverts commit f725dc1.
  12. Revert "Update wc_customer_bought_product() and customers report to u…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …se post_author instead of _customer_user"
    
    This reverts commit b97f274.
  13. Revert "Update WC API v1 and v2 to use post_author instead of _custom…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …er_user"
    
    This reverts commit fdfe95b.
  14. Revert "Update WC_Customer_Data_Store to use post_author instead of _…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …customer_user"
    
    This reverts commit 482e844.
  15. Revert "Update WC_Order_Data_Store_CPT::get_wp_query_args() to use po…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …st_author instead of _customer_user"
    
    This reverts commit 8db3236.
  16. Revert "Fix some code untitentional code changes added during the las…

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    …t merge from master"
    
    This reverts commit 7f70c63.
  17. Revert "Pass user_id via $wpdb->prepare()"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit 77add46.
  18. Revert "Fix indentation"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit 397e40f.
  19. Revert "Add @return for wc_update_350_order_customer_id() docblock"

    rodrigoprimo authored and claudiulodro committed Oct 29, 2018
    This reverts commit 5c5cddf.
  20. Use $product->get_image_id() instead of has_post_thumbnail()

    rodrigoprimo authored and claudiulodro committed Oct 18, 2018
    This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
  21. phpcs fixes

    rodrigoprimo authored and claudiulodro committed Oct 18, 2018
Commits on Oct 23, 2018
  1. Fix: WC_Product::get_image() should use $attr parameter

    rodrigoprimo authored and claudiulodro committed Oct 17, 2018
    This commit fixes a issue that was introduced when WC_Product::get_image() was refactored in 64b589f that was making this method ignore what was passed in the $attr parameter.
  2. Change wp_woocommerce_sessions before dbDelta() is called

    rodrigoprimo authored and claudiulodro committed Oct 17, 2018
    On PR #21245, I added a db update routine to change wp_woocommerce_sessions primary key from session_key char(32) to session_id bigint auto_increment as dbDelta() is unable to handle primary key changes (see https://core.trac.wordpress.org/ticket/40357). But I didn't realize that dbDelta() was actually trying to add a new primary key to the table without droping the old key first and this was generating the following error:
    
    ```
    WordPress database error Multiple primary key defined for query ALTER TABLE wp_woocommerce_sessions ADD PRIMARY KEY  (`session_id`)
    ```
    
    To prevent this error from happening, this commit moves the query that changes the primary key from db update routine to WC_Install::create_tables() so that it runs before dbDelta() is called.
  3. Revert "Do not try and create primary key using upgrade routine, dbde…

    rodrigoprimo authored and claudiulodro committed Oct 17, 2018
    …lta does that automatically. Just drop the key if it exists and add a new unique key."
    
    This reverts commit d3e59b770b87d13c412effa32aa10cf49e219da5.
Older
You can’t perform that action at this time.