You appear to be a bot. Output may be restricted
Description
Load a .mo file for the old textdomain if one exists.
Usage
EDD_Requirements_Check::load_old_textdomain( $mofile, $textdomain );
Parameters
- $mofile
- ( mixed ) required –
- $textdomain
- ( mixed ) required –
Returns
void
Source
File name: easy-digital-downloads/includes/class-edd-requirements-check.php
Lines:
1 to 11 of 11
public function load_old_textdomain( $mofile, $textdomain ) { // Fallback for old text domain if ( ( 'easy-digital-downloads' === $textdomain ) && ! file_exists( $mofile ) ) { $mofile = dirname( $mofile ) . DIRECTORY_SEPARATOR . str_replace( $textdomain, 'edd', basename( $mofile ) ); } // Return (possibly overridden) mofile return $mofile; }