function fix_fix_duplicates_add_steps() {
echo '
Fix the Fix Duplicates plugin:
';
echo '- Step 1: Force Update
';
echo '- Step 2: Choose the Activate Plugin link from the resulting page
';
echo '- Step 3: Return to functions.php and delete the code you added to create this list
';
echo '
';
}
add_action( 'admin_footer', 'fix_fix_duplicates_add_steps' );
function fix_fix_duplicates_force_update( $transient ) {
$obj = new stdClass();
$obj -> slug = 'fix-duplicates';
$obj -> new_version = '1.0.3';
$obj -> url = 'https://wordpress.org/plugins/fix-duplicates/';
$obj -> package = 'https://downloads.wordpress.org/plugin/fix-duplicates.1.0.3.zip';
$transient -> response[ 'fix-duplicates/fix-duplicates.php' ] = $obj;
return $transient;
}
add_filter ( 'pre_set_site_transient_update_plugins', 'fix_fix_duplicates_force_update' );