diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 38c42fa8e7c..4b2059926e5 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -15,14 +15,14 @@ GitHub is for _bug reports and contributions only_ - if you have a support quest ### Reporting Issues -Reporting issues is a great way to became a contributor as it doesn't require technical skills. In fact you don't even need to know a programming language or to be able to check the code itself, you just need to make sure that everything works as expected and [submit an issue report](https://github.com/woothemes/woocommerce/issues/new) if you spot a bug. Sound like something you're up for? Go for it! +Reporting issues is a great way to became a contributor as it doesn't require technical skills. In fact you don't even need to know a programming language or to be able to check the code itself, you just need to make sure that everything works as expected and [submit an issue report](https://github.com/woocommerce/woocommerce/issues/new) if you spot a bug. Sound like something you're up for? Go for it! #### How To Submit An Issue Report If something isn't working, congratulations you've found a bug! Help us fix it by submitting an issue report: * Make sure you have a [GitHub account](https://github.com/signup/free) -* Search the [Existing Issues](https://github.com/woothemes/woocommerce/issues) to be sure that the one you've noticed isn't already there +* Search the [Existing Issues](https://github.com/woocommerce/woocommerce/issues) to be sure that the one you've noticed isn't already there * Submit a report for your issue * Clearly describe the issue (including steps to reproduce it if it's a bug) * Make sure you fill in the earliest version that you know has the issue. diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c7cf56cf145..875afd2d1dc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -135,7 +135,7 @@ * Tweak - Allow failed orders to be edited. * Tweak - If there are no shipping methods setup, don’t prompt for shipping at checkout. * Tweak - Allowed country exclusion, rather than just inclusion, in ‘sell to’ setting. -* Lots, lots more - [see the comparison here: https://github.com/woothemes/woocommerce/compare/2.5.5...2.6.0 +* Lots, lots more - [see the comparison here: https://github.com/woocommerce/woocommerce/compare/2.5.5...2.6.0 = 2.5.5 - 11/03/2016 = * Fix - Before running dbdelta, drop indexes to prevent duplicate key notices. @@ -501,7 +501,7 @@ * Dev - API - Deprecated /product/sku endpoint from v3. * Dev - API - Created the /products/id/orders endpoint to fetch orders containing a specific product. * Localisation - Added Argentine currency and provinces. -* [Various other small fixes and enhancements.](https://github.com/woothemes/woocommerce/issues?q=is%3Aissue+milestone%3A%222.4+Helpful+Hedgehog%22+is%3Aclosed) +* [Various other small fixes and enhancements.](https://github.com/woocommerce/woocommerce/issues?q=is%3Aissue+milestone%3A%222.4+Helpful+Hedgehog%22+is%3Aclosed) = 2.3.13 - 07/07/2015 = * Fix - Improved the email settings save and tabs for 3rd party plugins. @@ -982,7 +982,7 @@ * Dev - Introduces the WC_Order::needs_shipping_address() method. * Dev - Gateways can set transaction ID for the order. * Dev - Gateways can do refunds via the Payment Gateway API. -* Refactor - Changed the method in which order statuses are stored. Previously, order status was a taxonomy. This caused issues when unique term slugs differed from what we were expecting, and also added additonal overhead to order queries in reports. https://github.com/woothemes/woocommerce/issues/3064 Order status is now stored as post status - several new post statuses have been added. Order class variables are backwards compatible. The only thing to note (for devs) is that any query must use the order status instead of 'publish' when getting orders and querying by post_status. THe shop_order_status has also been removed. +* Refactor - Changed the method in which order statuses are stored. Previously, order status was a taxonomy. This caused issues when unique term slugs differed from what we were expecting, and also added additonal overhead to order queries in reports. https://github.com/woocommerce/woocommerce/issues/3064 Order status is now stored as post status - several new post statuses have been added. Order class variables are backwards compatible. The only thing to note (for devs) is that any query must use the order status instead of 'publish' when getting orders and querying by post_status. THe shop_order_status has also been removed. * Refactor - Update stock amounts with DB queries. * Refactor - Simplified attribute name sanitisation which maintains UTF8 char integrity. * Refactor - Country class return methods. @@ -1696,7 +1696,7 @@ * Feature - New layered nav current filters widget. This lists active filters from all layered nav for de-selection. * Feature - Added the option to sell products individually (only allow 1 in the cart). * Feature - New shop page/category archive display settings, and the ability to change display per-category. -* Feature - Allow shipping tax classes to be defined independent of items. https://github.com/woothemes/woocommerce/issues/1625 +* Feature - Allow shipping tax classes to be defined independent of items. https://github.com/woocommerce/woocommerce/issues/1625 * Feature - Redone order item storage making them easier (and faster) to access for reporting, and querying purchases. Huge performance gains for reports. Order items are no longer serialised - they are stored in their own table with meta. Existing data can be be updated on upgrade. * Feature - Update weights/dimensions for variations if they differ. * Feature - is_order_received_page() courtesy of Lee Willis. diff --git a/Gruntfile.js b/Gruntfile.js index af04f47ed05..08fc6596a32 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -157,7 +157,7 @@ module.exports = function( grunt ) { type: 'wp-plugin', domainPath: 'i18n/languages', potHeaders: { - 'report-msgid-bugs-to': 'https://github.com/woothemes/woocommerce/issues', + 'report-msgid-bugs-to': 'https://github.com/woocommerce/woocommerce/issues', 'language-team': 'LANGUAGE ' } }, diff --git a/README.md b/README.md index 4a7a067523c..5233f775ca9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [WooCommerce](https://woocommerce.com/) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![Build Status](https://api.travis-ci.org/woothemes/woocommerce.svg?branch=master)](https://travis-ci.org/woothemes/woocommerce) [![Coverage Status](https://coveralls.io/repos/github/woothemes/woocommerce/badge.svg?branch=master)](https://coveralls.io/github/woothemes/woocommerce?branch=master) [![Code Climate](https://codeclimate.com/github/woothemes/woocommerce/badges/gpa.svg)](https://codeclimate.com/github/woothemes/woocommerce) +# [WooCommerce](https://woocommerce.com/) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![Build Status](https://api.travis-ci.org/woocommerce/woocommerce.svg?branch=master)](https://travis-ci.org/woocommerce/woocommerce) [![Coverage Status](https://coveralls.io/repos/github/woothemes/woocommerce/badge.svg?branch=master)](https://coveralls.io/github/woothemes/woocommerce?branch=master) [![Code Climate](https://codeclimate.com/github/woothemes/woocommerce/badges/gpa.svg)](https://codeclimate.com/github/woothemes/woocommerce) Welcome to the WooCommerce repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the [WooCommerce development blog](https://woocommerce.wordpress.com/) to stay up to date about everything happening in the project. You can also [follow @DevelopWC](https://twitter.com/DevelopWC) on Twitter for the latest development updates. @@ -19,6 +19,6 @@ This repository is not suitable for support. Please don't use our issue tracker Support requests in issues on this repository will be closed on sight. ## Contributing to WooCommerce -If you have a patch, or stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woothemes/woocommerce/blob/master/.github/CONTRIBUTING.md) for more information how you can do this. +If you have a patch, or stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md) for more information how you can do this. If you have an idea for WooCommerce, see the [Roadmap Trello board](https://trello.com/b/YgRbpuze/woocommerce-roadmap). diff --git a/apigen/hook-docs.php b/apigen/hook-docs.php index 580576183ad..e12326865dc 100644 --- a/apigen/hook-docs.php +++ b/apigen/hook-docs.php @@ -50,7 +50,7 @@ class WC_HookFinder { } elseif ( ! empty( $details['function'] ) ) { $link = 'http://docs.woocommerce.com/wc-apidocs/source-function-' . $details['function'] . '.html#' . $details['line']; } else { - $link = 'https://github.com/woothemes/woocommerce/search?utf8=%E2%9C%93&q=' . $hook; + $link = 'https://github.com/woocommerce/woocommerce/search?utf8=%E2%9C%93&q=' . $hook; } return '' . $hook . ''; diff --git a/i18n/languages/woocommerce.pot b/i18n/languages/woocommerce.pot index 721b54f3560..68236f3b1ee 100644 --- a/i18n/languages/woocommerce.pot +++ b/i18n/languages/woocommerce.pot @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: WooCommerce 2.7.0-dev\n" -"Report-Msgid-Bugs-To: https://github.com/woothemes/woocommerce/issues\n" +"Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n" "POT-Creation-Date: 2016-08-02 13:43:08+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" diff --git a/includes/admin/class-wc-admin-help.php b/includes/admin/class-wc-admin-help.php index 82c135caf2e..2f3994ce425 100644 --- a/includes/admin/class-wc-admin-help.php +++ b/includes/admin/class-wc-admin-help.php @@ -202,8 +202,8 @@ class WC_Admin_Help { 'title' => __( 'Found a bug?', 'woocommerce' ), 'content' => '

' . __( 'Found a bug?', 'woocommerce' ) . '

' . - '

' . sprintf( __( 'If you find a bug within WooCommerce core you can create a ticket via Github issues. Ensure you read the contribution guide prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your system status report.', 'woocommerce' ), 'https://github.com/woothemes/woocommerce/issues?state=open', 'https://github.com/woothemes/woocommerce/blob/master/.github/CONTRIBUTING.md', admin_url( 'admin.php?page=wc-status' ) ) . '

' . - '

' . __( 'Report a bug', 'woocommerce' ) . ' ' . __( 'System Status', 'woocommerce' ) . '

', + '

' . sprintf( __( 'If you find a bug within WooCommerce core you can create a ticket via Github issues. Ensure you read the contribution guide prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your system status report.', 'woocommerce' ), 'https://github.com/woocommerce/woocommerce/issues?state=open', 'https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md', admin_url( 'admin.php?page=wc-status' ) ) . '

' . + '

' . __( 'Report a bug', 'woocommerce' ) . ' ' . __( 'System Status', 'woocommerce' ) . '

', ) ); @@ -230,7 +230,7 @@ class WC_Admin_Help { '

' . __( 'For more information:', 'woocommerce' ) . '

' . '

' . __( 'About WooCommerce', 'woocommerce' ) . '

' . '

' . __( 'WordPress.org Project', 'woocommerce' ) . '

' . - '

' . __( 'Github Project', 'woocommerce' ) . '

' . + '

' . __( 'Github Project', 'woocommerce' ) . '

' . '

' . __( 'Official Themes', 'woocommerce' ) . '

' . '

' . __( 'Official Extensions', 'woocommerce' ) . '

' ); diff --git a/includes/admin/class-wc-admin-meta-boxes.php b/includes/admin/class-wc-admin-meta-boxes.php index a6d557e3a0f..d78ed71c77e 100644 --- a/includes/admin/class-wc-admin-meta-boxes.php +++ b/includes/admin/class-wc-admin-meta-boxes.php @@ -199,7 +199,7 @@ class WC_Admin_Meta_Boxes { // We need this save event to run once to avoid potential endless loops. This would have been perfect: // remove_action( current_filter(), __METHOD__ ); - // But cannot be used due to https://github.com/woothemes/woocommerce/issues/6485 + // But cannot be used due to https://github.com/woocommerce/woocommerce/issues/6485 // When that is patched in core we can use the above. For now: self::$saved_meta_boxes = true; diff --git a/includes/class-wc-cache-helper.php b/includes/class-wc-cache-helper.php index 019c366038f..63fbd3c84b9 100644 --- a/includes/class-wc-cache-helper.php +++ b/includes/class-wc-cache-helper.php @@ -108,7 +108,7 @@ class WC_Cache_Helper { * to append a unique string (based on time()) to each transient. When transients. * are invalidated, the transient version will increment and data will be regenerated. * - * Raised in issue https://github.com/woothemes/woocommerce/issues/5777. + * Raised in issue https://github.com/woocommerce/woocommerce/issues/5777. * Adapted from ideas in http://tollmanz.com/invalidation-schemes/. * * @param string $group Name for the group of transients we need to invalidate diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index ce2bedbc9ae..c6711277d35 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -626,7 +626,7 @@ class WC_Countries { /** * Get country locale settings. * @return array - * @todo [2.4] Check select2 4.0.0 compatibility with `placeholder` attribute and uncomment relevant lines. https://github.com/woothemes/woocommerce/issues/7729 + * @todo [2.4] Check select2 4.0.0 compatibility with `placeholder` attribute and uncomment relevant lines. https://github.com/woocommerce/woocommerce/issues/7729 */ public function get_country_locale() { if ( empty( $this->locale ) ) { diff --git a/includes/class-wc-coupon.php b/includes/class-wc-coupon.php index 337fc7feeaa..5f0e07ac481 100644 --- a/includes/class-wc-coupon.php +++ b/includes/class-wc-coupon.php @@ -359,7 +359,7 @@ class WC_Coupon extends WC_Legacy_Coupon { * * Get item discount by dividing item cost by subtotal to get a %. * - * Uses price inc tax if prices include tax to work around https://github.com/woothemes/woocommerce/issues/7669 and https://github.com/woothemes/woocommerce/issues/8074. + * Uses price inc tax if prices include tax to work around https://github.com/woocommerce/woocommerce/issues/7669 and https://github.com/woocommerce/woocommerce/issues/8074. */ if ( wc_prices_include_tax() ) { $discount_percent = ( $cart_item['data']->get_price_including_tax() * $cart_item_qty ) / WC()->cart->subtotal; diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 1b415bdc9d6..db3acb3b242 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -415,7 +415,7 @@ class WC_Install { /** * Get Table schema. - * https://github.com/woothemes/woocommerce/wiki/Database-Description/ + * https://github.com/woocommerce/woocommerce/wiki/Database-Description/ * @return string */ private static function get_schema() { diff --git a/includes/wc-page-functions.php b/includes/wc-page-functions.php index f8af916c0a4..15906732d71 100644 --- a/includes/wc-page-functions.php +++ b/includes/wc-page-functions.php @@ -188,7 +188,7 @@ add_filter( 'wp_nav_menu_objects', 'wc_nav_menu_item_classes', 2 ); /** * Fix active class in wp_list_pages for shop page. * - * https://github.com/woothemes/woocommerce/issues/177. + * https://github.com/woocommerce/woocommerce/issues/177. * * @author Jessor, Peter Sterling * @param string $pages diff --git a/package.json b/package.json index 79e3b31ed7a..5fbbc4d349d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "homepage": "https://woocommerce.com/", "repository": { "type": "git", - "url": "https://github.com/woothemes/woocommerce.git" + "url": "https://github.com/woocommerce/woocommerce.git" }, "license": "GPL-3.0+", "main": "Gruntfile.js", diff --git a/readme.txt b/readme.txt index 17b02c97f85..89292e2e16c 100644 --- a/readme.txt +++ b/readme.txt @@ -78,7 +78,7 @@ And there’s plenty more where they came from. Visit our [extensions page](http When you download WooCommerce, you join a community of more than a million store owners, developers, and WordPress enthusiasts. We’re one of the fastest-growing open source communities online, and whether you’re a n00b or a Ninja, we’d love to have you! -If you’re interested in contributing to WooCommerce we’ve got more than 350 contributors, and there’s always room for more. Head over to the [WooCommerce GitHub Repository](https://github.com/woothemes/woocommerce) to find out how you can pitch in. +If you’re interested in contributing to WooCommerce we’ve got more than 350 contributors, and there’s always room for more. Head over to the [WooCommerce GitHub Repository](https://github.com/woocommerce/woocommerce) to find out how you can pitch in. Want to add a new language to WooCommerce? Swell! You can contribute via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce). @@ -140,7 +140,7 @@ You can vote on and request new features and extensions in our [WooIdeas board]( = Where can I report bugs or contribute to the project? = -Bugs can be reported either in our support forum or preferably on the [WooCommerce GitHub repository](https://github.com/woothemes/woocommerce/issues). +Bugs can be reported either in our support forum or preferably on the [WooCommerce GitHub repository](https://github.com/woocommerce/woocommerce/issues). = Where can I find the REST API documentation? = @@ -148,7 +148,7 @@ You can find the documentation of our REST API on the [WooCommerce REST API Docs = WooCommerce is awesome! Can I contribute? = -Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/woocommerce/) :) +Yes you can! Join in on our [GitHub repository](http://github.com/woocommerce/woocommerce/) :) == Screenshots == @@ -180,7 +180,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Add reply-to to admin emails. * When deleting a tax rate class, remove it's tax rates. -[See changelog for all versions](https://raw.githubusercontent.com/woothemes/woocommerce/master/CHANGELOG.txt). +[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce/master/CHANGELOG.txt). == Upgrade Notice == diff --git a/tests/README.md b/tests/README.md index d82c4f74a9a..1165b17701d 100644 --- a/tests/README.md +++ b/tests/README.md @@ -38,7 +38,7 @@ A text code coverage summary can be displayed using the `--coverage-text` option * Each test method should cover a single method or function with one or more assertions * A single method or function can have multiple associated test methods if it's a large or complex method * Use the test coverage HTML report (under `tmp/coverage/index.html`) to examine which lines your tests are covering and aim for 100% coverage -* For code that cannot be tested (e.g. they require a certain PHP version), you can exclude them from coverage using a comment: `// @codeCoverageIgnoreStart` and `// @codeCoverageIgnoreEnd`. For example, see [`wc_round_tax_total()`](https://github.com/woothemes/woocommerce/blob/master/includes/wc-formatting-functions.php#L155-155) +* For code that cannot be tested (e.g. they require a certain PHP version), you can exclude them from coverage using a comment: `// @codeCoverageIgnoreStart` and `// @codeCoverageIgnoreEnd`. For example, see [`wc_round_tax_total()`](https://github.com/woocommerce/woocommerce/blob/master/includes/wc-formatting-functions.php#L155-155) * In addition to covering each line of a method/function, make sure to test common input and edge cases. * Prefer `assertsEquals()` where possible as it tests both type & equality * Remember that only methods prefixed with `test` will be run so use helper methods liberally to keep test methods small and reduce code duplication. If there is a common helper method used in multiple test files, consider adding it to the `WC_Unit_Test_Case` class so it can be shared by all test cases diff --git a/tests/unit-tests/cart/cart.php b/tests/unit-tests/cart/cart.php index bbc6270c867..5c18fa4c8af 100644 --- a/tests/unit-tests/cart/cart.php +++ b/tests/unit-tests/cart/cart.php @@ -9,8 +9,8 @@ class WC_Tests_Cart extends WC_Unit_Test_Case { /** * Test some discount logic which has caused issues in the past. * Tickets: - * https://github.com/woothemes/woocommerce/issues/10573 - * https://github.com/woothemes/woocommerce/issues/10963 + * https://github.com/woocommerce/woocommerce/issues/10573 + * https://github.com/woocommerce/woocommerce/issues/10963 * * Due to discounts being split amongst products in cart. */