Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
e916c8a7
Commit
e916c8a7
authored
4 years ago
by
lucha
Browse files
Options
Downloads
Patches
Plain Diff
update patch to wordpress 5.6
parent
79e79112
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/core/0103-Remove-pingback-trackback.patch
+28
-45
28 additions, 45 deletions
patches/core/0103-Remove-pingback-trackback.patch
with
28 additions
and
45 deletions
patches/core/0103-Remove-pingback-trackback.patch
+
28
−
45
View file @
e916c8a7
From c115c9f18fecca4e93a9ea137f5fa1a30cec7198 Mon Sep 17 00:00:00 2001
From: root <root@rivolta.investici.org>
Date: Sat, 5 Mar 2011 17:10:10 +0000
Subject: [PATCH 103/229] Remove pingback/trackback
Do not perform pingbacks and trackbacks when we update via cron.
---
wp-includes/comment.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index 15cb44bc..7f6d1030 100644
--- a/wp-includes/comment.php
+++ b/wp-includes/comment.php
@@ -2658,7 +2658,7 @@
function discover_pingback_server_uri( $url, $deprecated = '' ) {
function do_all_pings() {
global $wpdb;
- // Do pingbacks.
+ // NOT Do pingbacks. A/I
$pings = get_posts(
array(
'post_type' => get_post_types(),
@@ -2671,10 +2671,10 @@
function do_all_pings() {
--- wp-includes/comment.php 2021-02-03 13:27:35.000000000 -0800
+++ wp-includes/comment.php.patched 2021-02-16 15:05:21.147710994 -0800
@@ -2829,7 +2829,8 @@
foreach ( $pings as $ping ) {
delete_post_meta( $ping, '_pingme' );
- pingback( null, $ping );
+ //pingback( null, $ping );
+ // NOT Do pingbacks. A/I
+ // pingback( null, $ping );
}
}
- // Do enclosures.
+ // NOT Do enclosures. A/I
$enclosures = get_posts(
array(
'post_type' => get_post_types(),
@@ -2687,10 +2687,10 @@
function do_all_pings() {
@@ -2851,7 +2852,8 @@
foreach ( $enclosures as $enclosure ) {
delete_post_meta( $enclosure, '_encloseme' );
- do_enclose( null, $enclosure );
+ // NOT Do enclosures. A/I
+ // do_enclose( null, $enclosure );
}
}
- // Do trackbacks.
+ // NOT Do trackbacks. A/I
$trackbacks = get_posts(
array(
'post_type' => get_post_types(),
@@ -2703,11 +2703,11 @@
function do_all_pings() {
@@ -2873,7 +2875,8 @@
foreach ( $trackbacks as $trackback ) {
delete_post_meta( $trackback, '_trackbackme' );
- do_trackbacks( $trackback );
+ // NOT Do trackbacks. A/I
+ // do_trackbacks( $trackback );
}
}
- // Do Update Services/Generic Pings.
- generic_ping();
+ //Do NOT Update Services/Generic Pings
+ // generic_ping();
@@ -2945,6 +2948,8 @@
* @return int Same as Post ID from parameter
*/
function generic_ping( $post_id = 0 ) {
+ //Do NOT Update Services/Generic Pings
+ /*
$services = get_option( 'ping_sites' );
$services = explode( "\n", $services );
@@ -2954,7 +2959,7 @@
weblog_ping( $service );
}
}
-
+ */
return $post_id;
}
/**
--
2.17.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment