💥 TRENDING: Changeset/ - HD Photos!

Changeset 878796


Ignore:
Timestamp:
03/20/2014 02:38:44 PM (12 years ago)
Author:
eoigal
Message:

should be using load_plugin_textdomain function

Location:
akismet/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/class.akismet-widget.php

    r878668 r878796  
    66
    77    function __construct() {
    8         load_theme_textdomain( 'akismet' );
     8        load_plugin_textdomain( 'akismet' );
    99       
    1010        parent::__construct(
  • akismet/trunk/class.akismet.php

    r878668 r878796  
    192192                && self::$last_comment['comment_author_email'] == $comment->comment_author_email ) {
    193193                   
    194                     load_theme_textdomain( 'akismet' );
     194                    load_plugin_textdomain( 'akismet' );
    195195                   
    196196                    // normal result: true or false
     
    364364        $comment_errors = $wpdb->get_col( "SELECT comment_id FROM {$wpdb->commentmeta} WHERE meta_key = 'akismet_error' LIMIT 100" );
    365365       
    366         load_theme_textdomain( 'akismet' );
     366        load_plugin_textdomain( 'akismet' );
    367367
    368368        foreach ( (array) $comment_errors as $comment_id ) {
     
    660660        }
    661661       
    662         load_theme_textdomain( 'akismet' );
     662        load_plugin_textdomain( 'akismet' );
    663663
    664664        $file = AKISMET__PLUGIN_DIR . 'views/'. $name . '.php';
     
    673673    public static function plugin_activation() {
    674674        if ( version_compare( $GLOBALS['wp_version'], AKISMET__MINIMUM_WP_VERSION, '<' ) ) {
    675             load_theme_textdomain( 'akismet' );
     675            load_plugin_textdomain( 'akismet' );
    676676           
    677677            $message = '<strong>'.sprintf(esc_html__( 'Akismet %s requires WordPress %s or higher.' , 'akismet'), AKISMET_VERSION, AKISMET__MINIMUM_WP_VERSION ).'</strong> '.sprintf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'http://codex.wordpress.org/Upgrading_WordPress', 'http://wordpress.org/extend/plugins/akismet/download/');
Note: See TracChangeset for help on using the changeset viewer.