Make WordPress Core


Ignore:
Timestamp:
01/25/2024 05:06:45 PM (14 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix a few typos in wp-includes/pomo/po.php.

Props shailu25.
Fixes #60346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/po.php

    r56549 r57356  
    5454         * Exports all entries to PO format
    5555         *
    56          * @return string sequence of mgsgid/msgstr PO strings, doesn't containt newline at the end
     56         * @return string sequence of msgid/msgstr PO strings, doesn't contain a newline at the end
    5757         */
    5858        public function export_entries() {
     
    6565         *
    6666         * @param bool $include_headers whether to include the headers in the export
    67          * @return string ready for inclusion in PO file string for headers and all the enrtries
     67         * @return string ready for inclusion in PO file string for headers and all the entries
    6868         */
    6969        public function export( $include_headers = true ) {
     
    128128
    129129            $po = $quote . implode( "{$slash}n{$quote}{$newline}{$quote}", explode( $newline, $input_string ) ) . $quote;
    130             // Add empty string on first line for readbility.
     130            // Add empty string on first line for readability.
    131131            if ( str_contains( $input_string, $newline ) &&
    132132                ( substr_count( $input_string, $newline ) > 1 || substr( $input_string, -strlen( $newline ) ) !== $newline ) ) {
     
    142142         *
    143143         * @param string $input_string PO-formatted string
    144          * @return string enascaped string
     144         * @return string unescaped string
    145145         */
    146146        public static function unpoify( $input_string ) {
Note: See TracChangeset for help on using the changeset viewer.