WordPress.org

Make WordPress Core

Ticket #35436: 35436-remove-akismet-exception.patch

File 35436-remove-akismet-exception.patch, 1.0 KB (added by jrf, 6 years ago)
  • src/wp-admin/includes/plugin.php

    From a807363fc478b34abf7c79cabccf2987870f024c Mon Sep 17 00:00:00 2001
    From: jrfnl <github_nospam@adviesenzo.nl>
    Date: Wed, 13 Jan 2016 07:41:42 +0100
    Subject: [PATCH] Remove textdomain exception for Akismet as it now has it's
     own textdomain.
    
    ---
     src/wp-admin/includes/plugin.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/includes/plugin.php b/src/wp-admin/includes/plugin.php
    index 415ef5b..a312be9 100644
    a b function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup 
    121121                                load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) . $plugin_data['DomainPath'] );
    122122                        else
    123123                                load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) );
    124                 } elseif ( in_array( basename( $plugin_file ), array( 'hello.php', 'akismet.php' ) ) ) {
     124                } elseif ( 'hello.php' === basename( $plugin_file ) ) {
    125125                        $textdomain = 'default';
    126126                }
    127127                if ( $textdomain ) {