WordPress.org

Plugin Directory


Ignore:
Location:
akismet/tags/2.5.5
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • akismet/tags/2.5.5/admin.php

    r899024 r899024  
    4545        wp_register_script( 'akismet.js', AKISMET_PLUGIN_URL . 'akismet.js', array('jquery'), '2.5.4.6' ); 
    4646        wp_enqueue_script( 'akismet.js' ); 
     47        wp_localize_script( 'akismet.js', 'WPAkismet', array( 
     48            'comment_author_url_nonce' => wp_create_nonce( 'comment_author_url_nonce' ) 
     49        ) ); 
    4750    } 
    4851} 
     
    293296        function akismet_warning() { 
    294297            echo " 
    295             <div id='akismet-warning' class='updated fade'><p><strong>".__('Akismet is almost ready.')."</strong> ".sprintf(__('You must <a href="%1$s">enter your Akismet API key</a> for it to work.'), "plugins.php?page=akismet-key-config")."</p></div> 
     298            <div id='akismet-warning' class='updated fade'><p><strong>".__('Akismet is almost ready.')."</strong> ".sprintf(__('You must <a href="%1$s">enter your Akismet API key</a> for it to work.'), "admin.php?page=akismet-key-config")."</p></div> 
    296299            "; 
    297300        } 
     
    709712// Adds an 'x' link next to author URLs, clicking will remove the author URL and show an undo link 
    710713function akismet_remove_comment_author_url() { 
    711     if (!empty($_POST['id'])) { 
     714    if ( !empty($_POST['id'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) { 
    712715        global $wpdb; 
    713716        $comment = get_comment( intval($_POST['id']), ARRAY_A ); 
     
    724727 
    725728function akismet_add_comment_author_url() { 
    726     if (!empty($_POST['id']) && !empty($_POST['url'])) { 
     729    if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) { 
    727730        global $wpdb; 
    728731        $comment = get_comment( intval($_POST['id']), ARRAY_A ); 
  • akismet/tags/2.5.5/akismet.js

    r899024 r899024  
    2222        var data = { 
    2323            action: 'comment_author_deurl', 
     24            _wpnonce: WPAkismet.comment_author_url_nonce, 
    2425            id: thisId 
    2526        }; 
     
    4950        var data = { 
    5051            action: 'comment_author_reurl', 
     52            _wpnonce: WPAkismet.comment_author_url_nonce, 
    5153            id: thisId, 
    5254            url: thisUrl 
  • akismet/tags/2.5.5/akismet.php

    r899024 r899024  
    66Plugin Name: Akismet 
    77Plugin URI: http://akismet.com/?return=true 
    8 Description: 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. 
    9 Version: 2.5.4 
     8Description: 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="admin.php?page=akismet-key-config">Akismet configuration</a> page, and save your API key. 
     9Version: 2.5.5 
    1010Author: Automattic 
    1111Author URI: http://automattic.com/wordpress-plugins/ 
     
    2929*/ 
    3030 
    31 define('AKISMET_VERSION', '2.5.4'); 
     31define('AKISMET_VERSION', '2.5.5'); 
    3232define('AKISMET_PLUGIN_URL', plugin_dir_url( __FILE__ )); 
    3333 
  • akismet/tags/2.5.5/readme.txt

    r899024 r899024  
    44Requires at least: 3.0 
    55Tested up to: 3.3.1 
    6 Stable tag: 2.5.4 
     6Stable tag: 2.5.5 
    77License: GPLv2 or later 
    88 
     
    3131 
    3232== Changelog == 
     33 
     34= 2.5.5 = 
     35* Add nonce check for comment author URL remove action 
     36* Fix the settings link 
    3337 
    3438= 2.5.4 = 
Note: See TracChangeset for help on using the changeset viewer.