Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
os:
- windows-2022
- ubuntu-24.04
- macos-14
- macos-15
node-version:
- '20'
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-wordpress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- examples/wordpress-nginx
lando-version:
- 3-edge
- 3-stable
os:
- ubuntu-24.04
node-version:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Publish to NPM
on:
release:
types:
- published
- edited
- created

jobs:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ proxy:
services:
cli:
api: 4
image: node:18
image: node:20
command: sleep infinity
ports:
- 5173:5173/http
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Updated lando/php to v1.7.1.
* Switched images to [bitnamilegacy](https://github.com/bitnami/containers/issues/83267) namespace
* Updated to [@lando/mariadb@1.7.0](https://github.com/lando/mariadb/releases/tag/v1.7.0)
* Updated to [@lando/mysql@1.6.0](https://github.com/lando/mysql/releases/tag/v1.6.0)
* Updated to [@lando/nginx@1.5.0](https://github.com/lando/nginx/releases/tag/v1.5.0)
* Updated to [@lando/php@1.8.0](https://github.com/lando/php/releases/tag/v1.8.0)
* Updated to [@lando/postgres@1.5.0](https://github.com/lando/postgres/releases/tag/v1.5.0)

## v1.8.0 - [December 9, 2024](https://github.com/lando/wordpress/releases/tag/v1.8.0)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is the _official_ [Lando](https://lando.dev) plugin for [WordPress](https://wordpress.org/). When installed it...

* Allows users to run `wordpress` cms
* Allows users to configure `php` version from `5.3` all the way to `8.1`
* Allows users to configure `php` version from `5.3` all the way to `8.4`
* Allows users to configure `webroot`
* Allows users to configure web server to (`apache` or `nginx`)
* Allows users to configure database backend to (`mariadb`, `mysql`, or `postgres`)
Expand Down
8 changes: 4 additions & 4 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Note that if the above config options are not enough, all Lando recipes can be f

## Choosing a php version

You can set `php` to any version that is available in our [php service](https://docs.lando.dev/plugins/php). However, you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure that version is actually supported by WordPress itself.
You can set `php` to any version that is available in our [php service](https://docs.lando.dev/plugins/php/index.html). However, you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure that version is actually supported by WordPress itself.

The [recipe config](https://docs.lando.dev/landofile/recipes.html#config) to set the WordPress recipe to use `php` version `7.1` is shown below:

Expand All @@ -50,7 +50,7 @@ config:

## Choosing a web server

By default, this recipe will be served by the default version of our [apache](https://docs.lando.dev/plugins/apache) service but you can also switch this to use [`nginx`](https://docs.lando.dev/plugins/nginx). We *highly recommend* you check out both the [apache](https://docs.lando.dev/plugins/apache) and [nginx](https://docs.lando.dev/plugins/nginx) services before you change the default `via`.
By default, this recipe will be served by the default version of our [apache](https://docs.lando.dev/plugins/apache/index.html) service but you can also switch this to use [`nginx`](https://docs.lando.dev/plugins/nginx/index.html). We *highly recommend* you check out both the [apache](https://docs.lando.dev/plugins/apache/index.html) and [nginx](https://docs.lando.dev/plugins/nginx/index.html) services before you change the default `via`.

#### With Apache (default)

Expand All @@ -70,9 +70,9 @@ config:

## Choosing a database backend

By default, this recipe will use the default version of our [mysql](https://docs.lando.dev/plugins/mysql) service as the database backend but you can also switch this to use [`mariadb`](https://docs.lando.dev/plugins/mariadb) or ['postgres'](https://docs.lando.dev/plugins/postgres) instead. Note that you can also specify a version *as long as it is a version available for use with lando* for either `mysql`, `mariadb` or `postgres`.
By default, this recipe will use the default version of our [mysql](https://docs.lando.dev/plugins/mysql/index.html) service as the database backend but you can also switch this to use [`mariadb`](https://docs.lando.dev/plugins/mariadb/index.html) or ['postgres'](https://docs.lando.dev/plugins/postgres/index.html) instead. Note that you can also specify a version *as long as it is a version available for use with lando* for either `mysql`, `mariadb` or `postgres`.

If you are unsure about how to configure the `database`, we *highly recommend* you check out the [mysql](https://docs.lando.dev/plugins/mysql), [mariadb](https://docs.lando.dev/plugins/mariadb)and ['postgres'](https://docs.lando.dev/plugins/postgres) services before you change the default.
If you are unsure about how to configure the `database`, we *highly recommend* you check out the [mysql](https://docs.lando.dev/plugins/mysql/index.html), [mariadb](https://docs.lando.dev/plugins/mariadb/index.html)and ['postgres'](https://docs.lando.dev/plugins/postgres/index.html) services before you change the default.

Also note that like the configuration of the `php` version you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure the `database` and `version` you select is actually supported by WordPress itself.

Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ At the very least you will need to have the following installed:

* [Lando 3.21.0+](https://docs.lando.dev/getting-started/installation.html) preferably installed [from source](https://docs.lando.dev/install/source.html).
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [Node 18](https://nodejs.org/dist/latest-v18.x/)
* [Node 20](https://nodejs.org/dist/latest-v20.x/)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Lando offers a configurable [recipe](https://docs.lando.dev/landofile/recipes.ht

#### Features of this plugin:

* Configurable `php` version from `5.3` all the way to `8.3`
* Configurable `php` version from `5.3` all the way to `8.4`
* Configurable `webroot`
* Configurable web server (`apache` or `nginx`)
* Configurable database backend (`mariadb`, `mysql`, or `postgres`)
Expand Down
4 changes: 2 additions & 2 deletions docs/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ You can also run `lando` from inside your app directory for a complete list of c

## Using xdebug

This is just a passthrough option to the [xdebug setting](https://docs.lando.dev/plugins/php/config.html#using-xdebug) that exists on all our [php services](https://docs.lando.dev/plugins/php). The `tl;dr` is `xdebug: true` enables and configures the php xdebug extension and `xdebug: false` disables it.
This is just a passthrough option to the [xdebug setting](https://docs.lando.dev/plugins/php/config.html#using-xdebug) that exists on all our [php services](https://docs.lando.dev/plugins/php/index.html). The `tl;dr` is `xdebug: true` enables and configures the php xdebug extension and `xdebug: false` disables it.

```yaml
recipe: wordpress
config:
xdebug: true|false
```

However, for more information we recommend you consult the [php service documentation](https://docs.lando.dev/plugins/php).
However, for more information we recommend you consult the [php service documentation](https://docs.lando.dev/plugins/php/index.html).

## Importing Your Database

Expand Down
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
output_path = "reports/lighthouse.html"

# We need this so preview environments and the base site look ok on their own
[[redirects]]
from = "https://lando-wordpress.netlify.app"
to = "https://lando-wordpress.netlify.app/plugins/wordpress/index.html"
status = 301
force = true
[[redirects]]
from = "https://lando-wordpress.netlify.app/*"
to = "https://docs.lando.dev/:splat"
status = 301
[[redirects]]
from = "/"
to = "/plugins/wordpress"
Expand Down
76 changes: 49 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"wordpress"
],
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"lando": {},
"main": "index.js",
Expand Down Expand Up @@ -43,11 +43,12 @@
"test": "npm run lint && npm run test:unit"
},
"dependencies": {
"@lando/mariadb": "^1.6.3",
"@lando/mariadb": "^1.7.0",
"@lando/mssql": "^1.4.3",
"@lando/mysql": "^1.4.4",
"@lando/php": "^1.7.1",
"@lando/postgres": "^1.4.4",
"@lando/mysql": "^1.6.0",
"@lando/nginx": "^1.5.0",
"@lando/php": "^1.8.0",
"@lando/postgres": "^1.5.0",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
Loading