Changeset 1659475
- Timestamp:
- 05/17/2017 03:08:49 PM (9 years ago)
- Location:
- multilingual-polylang/trunk
- Files:
-
- 2 edited
-
multilingual-polylang.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multilingual-polylang/trunk/multilingual-polylang.php
r1659317 r1659475 3 3 Plugin Name: Multilingual Polylang 4 4 Description: Display posts in all languages 5 Version: 1.0. 05 Version: 1.0.1 6 6 Author: Aptivate 7 7 */ -
multilingual-polylang/trunk/readme.txt
r1659317 r1659475 4 4 Requires at least: 4.0 5 5 Tested up to: 4.7.5 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 Multilingual Polylang provides two public functions: 20 20 21 `MultilingualPolylang::get_query()` returns a `WP_Query` object with posts from21 The function `MultilingualPolylang::get_query()` returns a `WP_Query` object with posts from 22 22 all languages but where there is a translated post, only the post in the current 23 23 language will be included 24 24 25 `MultilingualPolylang::get_permalink()` can be used as a drop-in replacement to25 The function `MultilingualPolylang::get_permalink()` can be used as a drop-in replacement to 26 26 `get_permalink()`. This will replace the language in a post URL so that a post 27 27 can be viewed in a language different to that of the rest of the interface. 28 28 29 [Follow this project on Git hub](https://github.com/aptivate/multilingual-polylang)29 [Follow this project on GitHub](https://github.com/aptivate/multilingual-polylang) 30 30 31 31 … … 36 36 37 37 == Changelog == 38 39 = 1.0.1 = 40 * Documentation changes only 38 41 39 42 = 1.0.0 = … … 50 53 This plugin uses [wp-cli](http://wp-cli.org/) and [PHPUnit](https://phpunit.de/) for testing. 51 54 52 * Grab the latest source from github: 55 = Download the source code from GitHub = 53 56 54 ` 55 $ git clone git@github.com:aptivate/multilingual-polylang.git 56 ` 57 `$ git clone git@github.com:aptivate/multilingual-polylang.git` 57 58 58 * Install [wp-cli](http://wp-cli.org/#install) 59 * Install [PHPUnit](https://phpunit.de/) 59 = Install wp-cli = 60 60 61 * Install the test WordPress environment: 61 If not already present, install [wp-cli](http://wp-cli.org/#install) 62 62 63 ` 64 cd multilingual-polylang 65 bash bin/install-wp-tests.sh test_db_name db_user 'db_password' db_host version 66 ` 63 = Install PHPUnit = 64 65 If not already present, install [PHPUnit](https://phpunit.de/) 66 67 = Install the test WordPress environment = 68 69 `$ cd multilingual-polylang` 70 `$ bash bin/install-wp-tests.sh test_db_name db_user 'db_password' db_host version` 67 71 68 72 where: 69 73 70 `test_db_name` is the name foryour **temporary** test WordPress database71 `db_user` is the database user name72 `db_password` is the password73 `db_host` is the database host (eg `localhost`)74 `version` is the version of WordPress (eg `4.7.5` or `latest`)74 * `test_db_name` is the name of your **temporary** test WordPress database 75 * `db_user` is the database user name 76 * `db_password` is the password 77 * `db_host` is the database host (eg `localhost`) 78 * `version` is the version of WordPress (eg `4.7.5` or `latest`) 75 79 76 * Run the tests 77 `phpunit` 80 = Run the tests = 81 From the plugin directory: 82 83 `$ phpunit`
Note: See TracChangeset
for help on using the changeset viewer.