diff --git a/src/wp-includes/pomo/po.php b/src/wp-includes/pomo/po.php index 99bb6891b1..22b94c11bf 100644 --- a/src/wp-includes/pomo/po.php +++ b/src/wp-includes/pomo/po.php @@ -13,7 +13,10 @@ if ( ! defined( 'PO_MAX_LINE_LEN' ) ) { define( 'PO_MAX_LINE_LEN', 79 ); } -ini_set( 'auto_detect_line_endings', 1 ); +// This setting has been deprecated in PHP 8.1. +if ( PHP_VERSION_ID < 80100 ) { + ini_set( 'auto_detect_line_endings', 1 ); +} /** * Routines for working with PO files