Commit Graph

3784 Commits

Author SHA1 Message Date
Ken Bass 30f539cbde Fix spaces per WP Coding Standards 2012-12-27 08:09:01 -05:00
Jesús Ángel del Pozo Domínguez 425cf474f8 Yoda conditions for debug tests:
Before:
	if ( $this->debug == 'yes' )
After:
	if ( 'yes' == $this->debug )
2012-12-27 11:44:58 +01:00
Jesús Ángel del Pozo Domínguez 47db520256 Edited code in last commit to obey WP coding standards.
Fixed wrong HTML code generated when the gateway isn't valid in the
user's country. The div tag couldn't be placed inside table tag:

<table class="form-table">
	<div class="inline error"><p> ... </p></div>
</table>
2012-12-27 11:20:04 +01:00
Geert De Deckere 8205357828 Optimization for woocommerce_change_term_counts() 2012-12-27 10:29:53 +01:00
Jesús Ángel del Pozo Domínguez 404ccaad63 Check for spoofed IPN response 2012-12-26 22:45:53 +01:00
Geert De Deckere e846ec34ac Need to use instead of to allow empty string titles 2012-12-26 17:08:25 +01:00
Geert De Deckere 2be0410a6d Tweaks to title of the layered nav filters widget
- The `widget_title` filter should be applied to all widget titles.
- Don’t hardcode the widget title. Even if no admin interface for setting a custom title is present, a custom title still can be provided via the `the_widget()` function.
- Don’t display the wrapping HTML for the widget title if no title is given.

These changes are just some best practices that should be kept in mind. Have a look at some default WordPress widgets (e.g. `WP_Widget_Pages`) to see the same approach.
2012-12-26 17:04:29 +01:00
Geert De Deckere 39f099336c Adding and fixing Dutch translations 2012-12-26 16:52:09 +01:00
Geert De Deckere a0b8ee16c5 Improved the result-count template
- Coding style: mid-line indenting which should be done using spaces.
- Renamed `$max` to `$total`.
- Simplified calculation of `$last`.
- Using en dash between range of values: http://en.wikipedia.org/wiki/Dash#Ranges_of_values.
- Tweaks to the “Showing 1–10 of 12 results” result text:
  - Converted `%s` to `%d`.
  - Used numbered placeholders (like `%1$d` and `%2$d`) which allows for more flexible translations since the placeholders can be swapped and repeated now.
  - Used `_x()` with comment to clarify placeholder order.
- Added two additional texts:
  - One for showing the only single result because “Showing 1–1 of 1 results” is overly verbose.
  - One for when all results are shown on the same page because “Showing 1–8 of 8 results” is a bit too verbose too.
2012-12-25 10:17:15 +01:00
Ken Bass 8d0f42b298 Hook into WP lostpassword_url filter so that code that calls wp_lostpassword_url() actually uses new lost password page rather
than wp-login.php. For example, WC Login Widget.
2012-12-25 01:21:27 -05:00
Ken Bass 8debb1697c Fix reset password URL to work with non-pretty permalinks
Fix security issue where new password is being changed on non-SSL page.
2012-12-25 00:19:33 -05:00
Mike Jolley a2aa49b3bf Merge pull request #2041 from arhipaiva/master
Updated Finnish localization to current 2.0.0-beta1 from 1.7.0
2012-12-23 09:01:23 -08:00
Mike Jolley 29660779eb Merge pull request #2040 from andreibarabas/master
Remove the $_SESSION #2022
2012-12-23 09:01:01 -08:00
Arhi Paivarinta 871b218435 Updated Finnish localization to current 2.0.0-beta1 from 1.7.0
Re-scanned 2.0.0-beta1 files.
2012-12-23 17:33:25 +02:00
Arhi Paivarinta 2a8cf39251 Updated Finnish localization to current 2.0.0-beta1 from 1.7.0
Re-scanned 2.0.0-beta1 files.
2012-12-23 17:24:51 +02:00
Arhi Paivarinta 12a7201fb3 Updated Finnish localization to current 2.0.0-beta1 from 1.7.0
Re-scanned 2.0.0-beta1 files.
2012-12-23 17:20:18 +02:00
Arhi Paivarinta 16a77063b9 Re-scanned 2.0.0-beta1 files.
Updated Finnish localization from 1.7.0 to current 2.0.0-beta1
2012-12-23 17:16:11 +02:00
Andrei Barabas 6dbdb872d9 remove the $_SESSION usage 2012-12-23 17:16:04 +02:00
Mike Jolley 1141714ecf Respect show count setting. Closes #2034. 2012-12-23 12:35:49 +00:00
Mike Jolley a5a76a950b Cron offset #1971 2012-12-23 12:29:16 +00:00
Mike Jolley 0fb50856b9 Account page tweaks for #2027 2012-12-23 12:19:56 +00:00
Mike Jolley 64bdf33158 Merge pull request #2027 from brichards/master
Clean up My Account templates
2012-12-23 03:37:32 -08:00
Mike Jolley 3af3f42a5b Readme for #2032 2012-12-23 11:36:05 +00:00
Mike Jolley f9cf3af2a5 Merge pull request #2032 from mikaeljorhult/master
Updated swedish localization to latest version
2012-12-23 03:35:27 -08:00
Mike Jolley 2c096d4609 Merge pull request #2037 from Ramoonus/master
NL refresh
2012-12-23 03:33:51 -08:00
Ramon van Belzen ccc5e7404e nl_NL translation mo po refresh
using PoEdit
2012-12-22 12:06:21 +01:00
Mikael Jorhult 90af71cbd2 Update version information. 2012-12-21 19:57:19 +01:00
Mikael Jorhult 1417f119cc Updated swedish localization for 2.0.0-beta1. 2012-12-21 19:38:46 +01:00
Mikael Jorhult f7128cf08f Merge branch 'master' of https://github.com/woothemes/woocommerce 2012-12-21 18:01:17 +01:00
Mikael Jorhult 1efad2b7df Updated swedish localization to latest version. 2012-12-21 17:38:09 +01:00
Mike Jolley bdc61bfdce wc_product_type_ transient is unused 2012-12-21 08:44:15 +00:00
Coen Jacobs d5b6dfc4a7 Securi = Sucuri :) 2012-12-20 18:59:55 +01:00
Brian Richards 3b9b100356 Clean up my-account template
This patch moves Available Downloads into it's own separate template
file, and moves the titles for Recent Orders and My Addresses into
their respective templates as well. This patch also adds a couple of
new hooks and filters for making templating even easier.
2012-12-20 11:34:39 -05:00
Coen Jacobs dec06d8d40 WooCommerce 2.0 beta 1 is here! 2012-12-20 16:17:31 +01:00
Mike Jolley e0a67b3387 rounding fixes for #2020 2012-12-20 15:10:27 +00:00
Mike Jolley 9ab2b8b4c7 tweak queries to support all registered taxonomies of products 2012-12-20 13:57:38 +00:00
Mike Jolley c33ea11e25 $theproduct -> $the_product 2012-12-20 13:36:41 +00:00
Mike Jolley 3eabb171e7 keep product for products admin 2012-12-20 13:33:35 +00:00
Mike Jolley 927693351a sync prices when empty 2012-12-20 12:54:02 +00:00
Mike Jolley d877086ffe get price, not ex price 2012-12-20 12:44:11 +00:00
Mike Jolley 6bb5ec424e placeholder images for hidden/secure files 2012-12-20 12:35:36 +00:00
Mike Jolley c7fd3e85a6 More class cleanup 2012-12-20 11:54:38 +00:00
Mike Jolley 68cd69f7d3 unused 2012-12-20 11:38:02 +00:00
Mike Jolley beaefd8ec7 downloadable uploader styling 2012-12-20 11:36:38 +00:00
Mike Jolley 6ee68e063f fix coupon and meta in product class 2012-12-20 11:30:27 +00:00
Mike Jolley e7e12714c1 Tweak style and function names for image handling. 2012-12-20 10:53:34 +00:00
Mike Jolley c8852bcf40 Revised, roduct gallery panel, images stored in meta = more flexibility. 2012-12-20 01:13:06 +00:00
Mike Jolley 7bd81503b5 Speed up orders page. #1765 2012-12-19 23:09:04 +00:00
Mike Jolley 41f573a71f Magic methods, avoid loading all meta on construct 2012-12-19 23:04:25 +00:00
Mike Jolley f972501dfa get_post_meta instead of get_post_custom - cut out the middleman. #1765 2012-12-19 21:01:15 +00:00