You appear to be a bot. Output may be restricted
Description
Load a .mo file for the old textdomain if one exists.
h/t: https://github.com/10up/grunt-wp-plugin/issues/21#issuecomment-62003284
Usage
Easy_Digital_Downloads::load_old_textdomain( $mofile, $textdomain );
Parameters
- $mofile
- ( mixed ) required –
- $textdomain
- ( mixed ) required –
Returns
void
Source
File name: easy-digital-downloads/easy-digital-downloads.php
Lines:
1 to 8 of 8
function load_old_textdomain( $mofile, $textdomain ) { if ( $textdomain === 'easy-digital-downloads' && ! file_exists( $mofile ) ) { $mofile = dirname( $mofile ) . DIRECTORY_SEPARATOR . str_replace( $textdomain, 'edd', basename( $mofile ) ); } return $mofile; }