jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/367033 )
Change subject: Show protection log on creation-protected pages
......................................................................
Show protection log on creation-protected pages
This change would add the message 'titleprotectedwarning'
to pages that have been protected against creation, just
like how deleted pages have their log visible beforere-creation.
It is visible to everyone, whether or not they are allowed to
recreate the page.
Bug: T171338
Change-Id: I5acf1bee9cea056b20b77fd386bc9df65033cded
---
M includes/page/Article.php
M languages/i18n/en.json
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/page/Article.php b/includes/page/Article.php
index d13fb3c..932c6bc 100644
--- a/includes/page/Article.php
+++ b/includes/page/Article.php
@@ -1180,7 +1180,7 @@
$key = $cache->makeKey( 'page-recent-delete', md5(
$title->getPrefixedText() ) );
$loggedIn = $this->getContext()->getUser()->isLoggedIn();
if ( $loggedIn || $cache->get( $key ) ) {
- $logTypes = [ 'delete', 'move' ];
+ $logTypes = [ 'delete', 'move', 'protect' ];
$dbr = wfGetDB( DB_REPLICA );
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index 929042f..d750551 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -735,8 +735,8 @@
"permissionserrorstext-withaction": "You do not have permission to $2,
for the following {{PLURAL:$1|reason|reasons}}:",
"contentmodelediterror": "You cannot edit this revision because its
content model is <code>$1</code>, which differs from the current content model
of the page <code>$2</code>.",
"recreate-moveddeleted-warn": "<strong>Warning: You are recreating a
page that was previously deleted.</strong>\n\nYou should consider whether it is
appropriate to continue editing this page.\nThe deletion and move log for this
page are provided here for convenience:",
- "moveddeleted-notice": "This page has been deleted.\nThe deletion and
move log for the page are provided below for reference.",
- "moveddeleted-notice-recent": "Sorry, this page was recently deleted
(within the last 24 hours).\nThe deletion and move log for the page are
provided below for reference.",
+ "moveddeleted-notice": "This page has been deleted.\nThe deletion,
protection, and move log for the page are provided below for reference.",
+ "moveddeleted-notice-recent": "Sorry, this page was recently deleted
(within the last 24 hours).\nThe deletion, protection, and move log for the
page are provided below for reference.",
"log-fulllog": "View full log",
"edit-hook-aborted": "Edit aborted by hook.\nIt gave no explanation.",
"edit-gone-missing": "Could not update the page.\nIt appears to have
been deleted.",
--
To view, visit https://gerrit.wikimedia.org/r/367033
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5acf1bee9cea056b20b77fd386bc9df65033cded
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ebe123 <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Ebe123 <[email protected]>
Gerrit-Reviewer: Mainframe98 <[email protected]>
Gerrit-Reviewer: Mbch331 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits