Skip to content

Commit

Permalink
Update version 8.0.0 information.
Browse files Browse the repository at this point in the history
  • Loading branch information
bovender committed Apr 6, 2021
1 parent f9b5de6 commit 588b7d6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 31 deletions.
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

For changes prior to version 6.0.0, please see [`NEWS.old`](news.old).

## [7.1.0][] - 2021-03-21
## [8.0.0][] - 2021-04-06

### Changed

- The minimum required version of MediaWiki is now 1.35.
- The values of `data-*` attributes in HTML tags are now being ignored.

### Fixed

- Replace PageContentSave with MultiContentSave to fix compatibility with MediaWiki 1.35.
- The default value for wgLinkTitlesParseOnRender is change back to `false` as support
for MediaWiki 1.35+ is fixed.
- Progress reporting by `linktitles-cli.php` is no longer incorrect when a start
page is defined.

## [7.0.0][] - 2020-12-23

Expand Down
37 changes: 12 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[MediaWiki extension](https://www.mediawiki.org/wiki/Extension:LinkTitles) that
automatically adds links to words that match titles of existing pages.

Minimum requirement: MediaWiki 1.28. Source code documentation can be
Minimum requirement: MediaWiki 1.35. Source code documentation can be
found at the [Github project pages](https://bovender.github.io/LinkTitles).

## Table of contents
Expand Down Expand Up @@ -70,13 +70,17 @@ are fixed.

Version | Date | Major changes ||
-|-|-|-
8 | 04-2021 | Minimum required version is 1.35. | [Details][v8.0.0]
7 | 12-2020 | Minimum required version is 1.32. |
6 | 12-2019 | Renamed deprecated MW constant for compatibility with MW version 1.34, minimum required version is 1.28. | [Details][v6.0.0]
5 | 09-2017 | Rewrote the entire extension; vastly improved namespace support; some breaking changes | [Details][v5.0.0]
4 | 11-2016 | Changed format of the extension for MediaWiki version 1.25; added basic namespace support | [Details][v4.0.0]
3 | 02-2015 | Added magic words; improved performance | [Details][3.0.0]
2 | 11-2013 | Introduced smart mode | [Details][2.0.0]
1 | 05-2012 | First stable release |

[v8.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v8.0.0
[v6.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v6.0.0
[v6.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v6.0.0
[v5.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v5.0.0
[v4.0.0]: https://github.com/bovender/LinkTitles/releases/tag/v4.0.0
Expand Down Expand Up @@ -107,27 +111,6 @@ Do not forget to adjust the [configuration](#configuration) to your needs.
If your MediaWiki version is really old (1.24 and older), you need to use
a [different mechanism](https://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension).

## Important note for MediaWiki versions 1.32 and newer

**Links can no longer be automatically added when a page is saved with
MediaWiki versions 1.32 and newer.** This is because MediaWiki changed the
signature of an important callback function. See [GitHub issue #43][issue-43]
and [T222413][] for more information. There's a slight chance that link-on-edit
will work again in a future version of MediaWiki (that is, if/when pull request
[467308][] is merged). Until that happens, admins are advised to use the
link-on-render feature (which is now enabled by default).

A workaround is to set up a cron job for the command-line tool, e.g.

# /etc/crontab
# Runs at 1 a.m. every morning.
# m h dom mon dow user command
0 1 * * * www-data php -f /var/www/html/extensions/LinkTitles/linktitles-cli.php

[issue-43]: https://github.com/bovender/LinkTitles/issues/43
[T222413]: https://phabricator.wikimedia.org/T222413
[467308]: https://gerrit.wikimedia.org/r/467308

## Usage

### Editing a page
Expand Down Expand Up @@ -448,7 +431,7 @@ reload interval is 1 second.
## Development

As of December 2020, there is only one major branch where all development takes
place. I used to follow Vincent Driessen's advice on [A successful Git
place. Formerly, I used to follow Vincent Driessen's advice on [A successful Git
branching model](http://nvie.com/git-model), but this did not work out for me
after all. Pull requests from other developers were usually issued against the
`master` branch, and the constant switching between the `develop` and the `master`
Expand All @@ -463,6 +446,8 @@ branches was prone to cause a mess.
- @yoshida3669, namespace-related bug fixes
- Caleb Mingle (@dentafrice), bug fix
- @paladox, bug fixes and compatilibity fixes
- bluedreamer
- j-zero

### Testing

Expand All @@ -475,12 +460,14 @@ know and I will try to add unit tests and fix it.
If you have [Docker](https://www.docker.com) available, simply to this:

docker build -t bovender/linktitles .
docker run -it --rm bovender/linktitles # repeat as necessary
# repeat the following as necessary
docker run -it --rm -v `pwd`:/var/www/html/extensions/LinkTitles bovender/linktitles

Or:

make build-test-container
make test # repeat as necessary
# repeat the following as necessary
make test

#### The Olde Way

Expand Down
12 changes: 7 additions & 5 deletions extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
"name": "LinkTitles",
"author": [
"[https://www.mediawiki.org/wiki/User:Bovender Daniel Kraus (bovender)]",
"Ulrich Strauss (c0nnex)",
"Adrian (bluedreamer)",
"j-zero",
"Brent Laabs (labster)",
"tetsuya-zama",
"yoshida",
"Caleb Mingle (dentafrice)",
"paladox"
"paladox",
"Ulrich Strauss (c0nnex)",
"tetsuya-zama",
"yoshida"
],
"type": "parserhook",
"url": "https://www.mediawiki.org/wiki/Extension:LinkTitles",
"version": "7.1.0",
"version": "8.0.0",
"license-name": "GPL-2.0+",
"descriptionmsg": "linktitles-desc",
"requires": {
Expand Down

0 comments on commit 588b7d6

Please sign in to comment.