Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
noblogs-wp
Commits
4a6d2fb8
Commit
4a6d2fb8
authored
Mar 05, 2011
by
root
Committed by
agata
Oct 17, 2019
Browse files
Remove pingback/trackback
Do not perform pingbacks and trackbacks when we update via cron.
parent
f4f5cecd
Changes
1
Show whitespace changes
Inline
Side-by-side
wp-includes/comment.php
View file @
4a6d2fb8
...
...
@@ -2629,13 +2629,11 @@ function do_all_pings() {
// Do pingbacks
while
(
$ping
=
$wpdb
->
get_row
(
"SELECT ID, post_content, meta_id FROM
{
$wpdb
->
posts
}
,
{
$wpdb
->
postmeta
}
WHERE
{
$wpdb
->
posts
}
.ID =
{
$wpdb
->
postmeta
}
.post_id AND
{
$wpdb
->
postmeta
}
.meta_key = '_pingme' LIMIT 1"
)
)
{
delete_metadata_by_mid
(
'post'
,
$ping
->
meta_id
);
pingback
(
$ping
->
post_content
,
$ping
->
ID
);
}
// Do Enclosures
while
(
$enclosure
=
$wpdb
->
get_row
(
"SELECT ID, post_content, meta_id FROM
{
$wpdb
->
posts
}
,
{
$wpdb
->
postmeta
}
WHERE
{
$wpdb
->
posts
}
.ID =
{
$wpdb
->
postmeta
}
.post_id AND
{
$wpdb
->
postmeta
}
.meta_key = '_encloseme' LIMIT 1"
)
)
{
delete_metadata_by_mid
(
'post'
,
$enclosure
->
meta_id
);
do_enclose
(
$enclosure
->
post_content
,
$enclosure
->
ID
);
}
// Do Trackbacks
...
...
@@ -2691,9 +2689,8 @@ function do_trackbacks( $post_id ) {
if
(
$to_ping
)
{
foreach
(
(
array
)
$to_ping
as
$tb_ping
)
{
$tb_ping
=
trim
(
$tb_ping
);
if
(
!
in_array
(
$tb_ping
,
$pinged
)
)
{
trackback
(
$tb_ping
,
$post_title
,
$excerpt
,
$post
->
ID
);
$tb_ping
=
trim
(
$tb_ping
);
if
(
!
in_array
(
$tb_ping
,
$pinged
)
)
{
$pinged
[]
=
$tb_ping
;
}
else
{
$wpdb
->
query
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment