Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1644 closed defect (bug) (fixed)

A new attempt at fixing ping delays

Reported by: ringmaster's profile ringmaster Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Administration Keywords:
Focuses: Cc:

Description

I've written some code that removes the ping functionality from the wp_insert_post(), instead adding some data to the postmeta.

When the next admin page loads (presumably after the post is saved), some new code in the header detects un-pinged, un-trackbacked, and un-enclosed posts. If there are any, an additional <link> is added to the header that references a "stylesheet" that actually does pinging on any posts that still need it.

Patch and new file forthcoming.

Please test.

Attachments (2)

execute-pings.php (1.4 KB) - added by ringmaster 19 years ago.
New file to handle pinging exclusively as a "stylesheet"
ping.3.diff (2.1 KB) - added by ringmaster 19 years ago.
Well, I'm dumb. Use THIS file, same /wp-admin/execute-pings.php. This one uses an iframe in the footer.

Download all attachments as: .zip

Change History (5)

@ringmaster
19 years ago

New file to handle pinging exclusively as a "stylesheet"

#1 @matt
19 years ago

Some browsers wait for the stylesheets before rendering the page. Could you redo this as an iframe or similar?

@ringmaster
19 years ago

Well, I'm dumb. Use THIS file, same /wp-admin/execute-pings.php. This one uses an iframe in the footer.

#2 @ringmaster
19 years ago

The new files to use are ping.3.diff and execute-pings.php

This last iteration puts a 1x1 iframe in the admin footer instead of the stylesheet.

#3 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2833]) Move pings out-of-band to speed up posting. Props to Owen. fixes #1644

Note: See TracTickets for help on using tickets.