* Dummy data
Address #15723 - still needs testing
* Updated ; to , in the CSV file
Updated as per @claudiosanches’ suggestion:
https://github.com/woocommerce/woocommerce/pull/16483#issuecomment-32313
3846
* update after testing
Deleted IDs because those kept causing conflicts
* updated with the new images
updated with the new images
* Updated xml file
Updated XML file:
* Deleted all unnecessary things
* All new product files
* Also images for categories added
* Renamed file
* file name change
consistent with tax dummy data - updated to “dummy-products” for the
xml file
Rather than loop defaults, then loop locale fields, this merges both
and applies rules after this.
To test, switch countries on the checkout and ensure fields are marked
required/hidden/labelled correctly.
Closes#17353
This commit adds product variation attributes to WP cache when they are first loaded to avoid running the same database queries when the same product is loaded multiple times. This cache will be invalidated whenever product attributes are changed.
Fixes#17120
* Fixed permalink default values
`woocommerce_permalinks` may return a list with empty results like:
wp> get_option( 'woocommerce_permalinks', array() )
=> array(5) {
["product_base"]=>
string(8) "/product"
["category_base"]=>
string(16) ""
["tag_base"]=>
string(11) ""
["attribute_base"]=>
string(0) ""
["use_verbose_page_rules"]=>
bool(false)
}
This override all placeholders declared with `wp_parse_args()`.
`wp_parse_args()` can apply default values only when missing, and not empty.
This PR removes all empty values in order to use the placeholders.
Fixes a bug introduced in #17352
* Moved array_filter() before wp_parse_args()
* Fixed the jetpack redirect url for sites in subdirectories
* Using admin_url instead of get_admin_url for consistency
* Wrapped the generated url in esc_url_raw
* Default currency responds to country selection in wizard
* Refactor to use wp_list_pluck
* Use <script> tag to define global instead of using hidden <input>
* Revert ignoring currency option value on page load