Plugin Directory

Changeset 1203537


Ignore:
Timestamp:
07/21/2015 10:15:17 PM (11 years ago)
Author:
slaptijack
Message:

now using activity_box_end, updated version info

Also, I removed the old workaround stuff that worked
for very old versions of Wordpress.

Location:
slaptigooglepr/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • slaptigooglepr/trunk/readme.txt

    r590323 r1203537  
    33Contributors: slaptijack
    44Requires at least: 2.2.3
    5 Tested up to: 3.4.1
    6 Stable tag: 12.08
     5Tested up to: 4.2.2
     6Stable tag: 15.07
    77Donate link: http://slaptijack.com
    88
  • slaptigooglepr/trunk/slaptigooglepr.php

    r590323 r1203537  
    208208add_action('manage_posts_custom_column', array('SlaptiGooglePR','display_manage_posts_column'), 10, 2);
    209209
    210 // How to display the site-wide PageRank is mainly a function of which
    211 // version you're using. If you have the rightnow_end action available,
    212 // we want to use that. Otherwise we'll stick the info at the top of
    213 // the page.
    214 if ( has_action('rightnow_end') ) {
    215     add_action('rightnow_end', array('SlaptiGooglePR','rightnow'));
    216 } elseif ( has_action('admin_head') && has_action('admin_footer') ) {
    217     add_action('admin_head', array('SlaptiGooglePR','add_admin_css'));
    218     add_action('admin_footer', array('SlaptiGooglePR','add_admin_footer'));
    219 }
     210// I used to worry about breaking older versions of Wordpress and
     211// worked around the old stuff. The fact of the matter is if you're
     212// using an old enough version of Wordpress that the old workaround
     213// was a good thing, you're a menace to the Internet.
     214add_action('activity_box_end', array('SlaptiGooglePR','rightnow'));
    220215
    221216?>
Note: See TracChangeset for help on using the changeset viewer.