WordPress.org

Make WordPress Core

Ticket #16918: 16918.diff

File 16918.diff, 431 bytes (added by aaroncampbell, 4 years ago)

Add compat.php back with _()

  • compat.php

     
     1<?php 
     2/** 
     3 * WordPress implementation for PHP functions missing from older PHP versions. 
     4 * 
     5 * @package PHP 
     6 * @access private 
     7 */ 
     8 
     9// If gettext isn't available 
     10if ( !function_exists('_') ) { 
     11        function _($string) { 
     12                return $string; 
     13        } 
     14}