WordPress.org

Plugin Directory

Changeset 363248


Ignore:
Timestamp:
03/22/11 13:37:38 (3 years ago)
Author:
lessbloat
Message:

Added ?return=true to all links pointing to Akismet.com - Adds a button to the thanks for subscribing page that takes them back to their WP Akismet config page.

Location:
akismet/dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • akismet/dev/admin.php

    r340168 r363248  
    125125        'new_key_failed' => array('color' => '888', 'text' => __('The key you entered could not be verified because a connection to akismet.com could not be established. Please check your server configuration.')), 
    126126        'no_connection' => array('color' => '888', 'text' => __('There was a problem connecting to the Akismet server. Please check your server configuration.')), 
    127         'key_empty' => array('color' => 'aa0', 'text' => sprintf(__('Please enter an API key. (<a href="%s" style="color:#fff">Get your key.</a>)'), 'http://akismet.com/get/')), 
     127        'key_empty' => array('color' => 'aa0', 'text' => sprintf(__('Please enter an API key. (<a href="%s" style="color:#fff">Get your key.</a>)'), 'http://akismet.com/get/?return=true')), 
    128128        'key_valid' => array('color' => '4AB915', 'text' => __('This key is valid.')), 
    129129        'key_failed' => array('color' => 'aa0', 'text' => __('The key below was previously validated but a connection to akismet.com can not be established at this time. Please check your server configuration.')), 
     
    142142<form action="" method="post" id="akismet-conf" style="margin: auto; width: 400px; "> 
    143143<?php if ( !$wpcom_api_key ) { ?> 
    144     <p><?php printf(__('For many people, <a href="%1$s">Akismet</a> will greatly reduce or even completely eliminate the comment and trackback spam you get on your site. If one does happen to get through, simply mark it as "spam" on the moderation screen and Akismet will learn from the mistakes. If you don\'t have an API key yet, you can get one at <a href="%2$s">Akismet.com</a>.'), 'http://akismet.com/', 'http://akismet.com/get/'); ?></p> 
     144    <p><?php printf(__('For many people, <a href="%1$s">Akismet</a> will greatly reduce or even completely eliminate the comment and trackback spam you get on your site. If one does happen to get through, simply mark it as "spam" on the moderation screen and Akismet will learn from the mistakes. If you don\'t have an API key yet, you can get one at <a href="%2$s">Akismet.com</a>.'), 'http://akismet.com/?return=true', 'http://akismet.com/get/?return=true'); ?></p> 
    145145 
    146146<h3><label for="key"><?php _e('Akismet API Key'); ?></label></h3> 
     
    148148    <p style="padding: .5em; background-color: #<?php echo $messages[$m]['color']; ?>; color: #fff; font-weight: bold;"><?php echo $messages[$m]['text']; ?></p> 
    149149<?php endforeach; ?> 
    150 <p><input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo get_option('wordpress_api_key'); ?>" style="font-family: 'Courier New', Courier, mono; font-size: 1.5em;" /> (<?php _e('<a href="http://akismet.com/get/">What is this?</a>'); ?>)</p> 
     150<p><input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo get_option('wordpress_api_key'); ?>" style="font-family: 'Courier New', Courier, mono; font-size: 1.5em;" /> (<?php _e('<a href="http://akismet.com/get/?return=true">What is this?</a>'); ?>)</p> 
    151151<?php if ( isset( $invalid_key) && $invalid_key ) { ?> 
    152152<h3><?php _e('Why might my key be invalid?'); ?></h3> 
     
    279279    else 
    280280        $link = 'edit.php'; 
    281     echo '<p>'.sprintf( _n( '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', $count ), 'http://akismet.com/', clean_url("$link?page=akismet-admin"), number_format_i18n($count) ).'</p>'; 
     281    echo '<p>'.sprintf( _n( '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', $count ), 'http://akismet.com/?return=true', clean_url("$link?page=akismet-admin"), number_format_i18n($count) ).'</p>'; 
    282282} 
    283283add_action('activity_box_end', 'akismet_stats'); 
     
    446446            '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comments already. ', 
    447447            $count 
    448         ), 'http://akismet.com/', number_format_i18n( $count ) ); 
     448        ), 'http://akismet.com/?return=true', number_format_i18n( $count ) ); 
    449449    } else { 
    450         $intro = sprintf( __('<a href="%1$s">Akismet</a> blocks spam from getting to your blog. '), 'http://akismet.com/' ); 
     450        $intro = sprintf( __('<a href="%1$s">Akismet</a> blocks spam from getting to your blog. '), 'http://akismet.com/?return=true' ); 
    451451    } 
    452452 
  • akismet/dev/akismet.php

    r342596 r363248  
    55/* 
    66Plugin Name: Akismet 
    7 Plugin URI: http://akismet.com/ 
     7Plugin URI: http://akismet.com/?return=true 
    88Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/?return=true">Sign up for an Akismet API key</a>, and 3) Go to your <a href="plugins.php?page=akismet-key-config">Akismet configuration</a> page, and save your API key. 
    99Version: 2.5.3 
Note: See TracChangeset for help on using the changeset viewer.