Introduce WP_PATCH_VERSION that allows reusing patch across the versions

In most cases, there is no need for new patch, as it's exactly the same. There were no changes recorded between versions 5.9.1 and 6.2.2
This commit is contained in:
2023-08-06 22:25:41 +02:00
parent b5781420c8
commit f2d68e2d55
13 changed files with 20 additions and 169 deletions

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-03-22 19:22:19.921705536 +0100
+++ update-core.php 2022-03-22 19:22:41.242213723 +0100
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-05-25 19:16:03.906128294 +0200
+++ update-core.php 2022-05-25 19:16:56.079812565 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-07-25 23:31:49.413445800 +0200
+++ update-core.php 2022-07-25 23:35:11.026340149 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-07-25 23:40:10.667406949 +0200
+++ update-core.php 2022-07-25 23:41:52.068913892 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-09-10 03:36:26.120553829 +0200
+++ update-core.php 2022-09-10 03:37:29.638236917 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-11-02 21:28:47.121321629 +0100
+++ update-core.php 2022-11-02 21:31:38.007567026 +0100
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2022-11-02 21:35:23.068067797 +0100
+++ update-core.php 2022-11-02 21:36:03.955439331 +0100
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2023-01-20 13:36:28.762998072 +0100
+++ update-core.php 2023-01-20 13:38:35.335180877 +0100
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2023-04-02 20:27:00.420010509 +0200
+++ update-core.php 2023-04-02 20:28:07.478135707 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates" target="_blank">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2023-05-22 23:14:59.041737945 +0200
+++ update-core.php 2023-05-22 23:17:12.572278041 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates" target="_blank">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.

View File

@@ -1,14 +0,0 @@
--- update-core.php 2023-08-06 22:01:15.849226997 +0200
+++ update-core.php 2023-08-06 22:02:42.945892647 +0200
@@ -1096,6 +1096,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates" target="_blank">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.