Categories
Wordpress

Changes to execute-pings.php

In my disagreement with the powers-that-be of the WordPress creators and coders, I expressed the need for Trackbacks to take precedence over Pingbacks. They marked my trac ticket as WONTFIX so I did it myself.

I simply rearranged the order in which the pings are sent putting trackbacks before pingbacks:
<?php
require_once('../wp-config.php');
// Do Enclosures
while ($enclosure = $wpdb->get_row("SELECT * FROM {$wpdb->posts}, {$wpdb->postmeta} WHERE {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id AND {$wpdb->postmeta}.meta_key = '_encloseme' LIMIT 1")) {
$wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE post_id = {$enclosure->ID} AND meta_key = '_encloseme';");
do_enclose($enclosure->post_content, $enclosure->ID);
}
// Do Trackbacks
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status != 'draft'");
if ( is_array($trackbacks) ) {
foreach ( $trackbacks as $trackback ) {
do_trackbacks($trackback->ID);
}
}
// Do pingbacks
while ($ping = $wpdb->get_row("SELECT * FROM {$wpdb->posts}, {$wpdb->postmeta} WHERE {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id AND {$wpdb->postmeta}.meta_key = '_pingme' LIMIT 1")) {
$wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE post_id = {$ping->ID} AND meta_key = '_pingme';");
pingback($ping->post_content, $ping->ID);
}
?>

It seems to be working and it makes much more sense this way.

You can download the updated file here.

You may then test this out by using this post. If you include a trackback and a ping back the trackback will be sent out first ensuring its reception.

This post is considered “Open Trackback” with no time limits.

Categories
Wordpress

Upgraded to WP 2.0.1

After much complaining and being generally annoying to the WordPress writers and coders I decided to upgrade to 2.0.1

Trackbacks seem to be working but I will have to do some more tests.

Also, word press is flawed in the way that if both a trackback and a pingback goes to the same blog the trackback gets suppressed. I changed execute-pings.php so that trackbacks go out first to see if that will avoid that from happening.

More testing and possibly complaining to come. 😉

Categories
Trackbacks

Open Trackback Friday

Every Friday I will try to have an Open Trackback article.

From the Open Trackback Alliance FAQ:

The entire concept is to encourage bloggers to showcase their best recent articles on other blogs which may not otherwise recognize or know about their works.

Open Trackback Alliance members have agreed to create an open article at least once a week, which anyone can create a link to their own blog articles…

So link up your best article. Let’s see what you’ve got. 🙂

Open Trackback Alliance logo

Categories
Trackbacks

Open Trackback Friday

Every Friday I will try to have an Open Trackback article.

From the Open Trackback Alliance FAQ:

The entire concept is to encourage bloggers to showcase their best recent articles on other blogs which may not otherwise recognize or know about their works.

Open Trackback Alliance members have agreed to create an open article at least once a week, which anyone can create a link to their own blog articles…

So link up your best article. Let’s see what you’ve got. 🙂

Categories
Trackbacks

Open Trackback Friday

Every Friday I will try to have an Open Trackback article.

From the Open Trackback Alliance FAQ:

The entire concept is to encourage bloggers to showcase their best recent articles on other blogs which may not otherwise recognize or know about their works.

Open Trackback Alliance members have agreed to create an open article at least once a week, which anyone can create a link to their own blog articles…

So link up your best article. Let’s see what you’ve got. 🙂

Categories
Trackbacks

Open Trackback Friday

Every Friday I will try to have an Open Trackback article.

From the Open Trackback Alliance FAQ:

The entire concept is to encourage bloggers to showcase their best recent articles on other blogs which may not otherwise recognize or know about their works.

Open Trackback Alliance members have agreed to create an open article at least once a week, which anyone can create a link to their own blog articles…

So link up your best article. Let’s see what you’ve got. 🙂

Categories
Trackbacks

Open trackback day

Every Friday I will try to have an Open Trackback article.

From the Open Trackback Alliance FAQ:

The entire concept is to encourage bloggers to showcase their best recent articles on other blogs which may not otherwise recognize or know about their works.

Open Trackback Alliance members have agreed to create an open article at least once a week, which anyone can create a link to their own blog articles…

So link up your best article. Let’s see what you’ve got. 🙂

Categories
Wordpress

Retrograde complete

Everything works as it should (it seems). I’m going to do some testing and make sure everything is kosher. 🙂

Looks like some of the dates were fubarred in the mix but I think I got everything in order.

I’ll report when I hear that WP2.0 is ready for human consumption.

Categories
Wordpress

Retrograde in progress

I am retrograding back to WordPress 1.5 due to WordPress 2.0 being generally sucky!

I’m going to have to sift through the database. Blah! 😡

Everything should be operational except for the links. I’ll get them up soon.

Categories
Trackbacks Wordpress

Possible trackback solution

I may have a solution to the trackback issue with WP2.0.

Pings will work if you execute execute_all_pings()

/wp-admin/execute-pings.php

It is obviously not being called in the script somewhere.

Now to figure out where to place it.

I am trying this at the end of post.php

Change:
break;
} // end switch
/* */
include('admin-footer.php');
?>

to this:
break;
} // end switch
/* */
require_once('execute-pings.php');
execute_all_pings();
include('admin-footer.php');
?>

It seems to add some text at the end of post.php but I can live with that.

*edit*
According to my page the ping went out. 🙂
After more testing it does not work if you include a pingback. So this fixes the trackback but breaks pingback. 😡

Categories
Trackbacks Wordpress

WordPress > Trackback to my WP2.0 doesn’t work WordPress Support

WordPress > Trackback to my WP2.0 doesn’t work WordPress Support

Here is an ongoing discussion about the outgoing trackbacks in WP 2.0 not working. So far it seems that no one is paying attention and everyone that says they work are sending pingbacks instead of trackbacks and completely misunderstanding the problem.

I wonder if the development team is savvy to the trouble?