Changeset 47122 for trunk/src/wp-includes/pomo/entry.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/pomo/entry.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/entry.php
r46631 r47122 42 42 */ 43 43 function __construct( $args = array() ) { 44 // if no singular -- empty object44 // If no singular -- empty object. 45 45 if ( ! isset( $args['singular'] ) ) { 46 46 return; 47 47 } 48 // get member variable values from args hash48 // Get member variable values from args hash. 49 49 foreach ( $args as $varname => $value ) { 50 50 $this->$varname = $value; … … 86 86 } 87 87 88 // Prepend context and EOT, like in MO files 88 // Prepend context and EOT, like in MO files. 89 89 $key = ! $this->context ? $this->singular : $this->context . "\4" . $this->singular; 90 // Standardize on \n line endings 90 // Standardize on \n line endings. 91 91 $key = str_replace( array( "\r\n", "\r" ), "\n", $key ); 92 92
Note: See TracChangeset
for help on using the changeset viewer.