Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46631 r47122  
    4242         */
    4343        function __construct( $args = array() ) {
    44             // if no singular -- empty object
     44            // If no singular -- empty object.
    4545            if ( ! isset( $args['singular'] ) ) {
    4646                return;
    4747            }
    48             // get member variable values from args hash
     48            // Get member variable values from args hash.
    4949            foreach ( $args as $varname => $value ) {
    5050                $this->$varname = $value;
     
    8686            }
    8787
    88             // Prepend context and EOT, like in MO files
     88            // Prepend context and EOT, like in MO files.
    8989            $key = ! $this->context ? $this->singular : $this->context . "\4" . $this->singular;
    90             // Standardize on \n line endings
     90            // Standardize on \n line endings.
    9191            $key = str_replace( array( "\r\n", "\r" ), "\n", $key );
    9292
Note: See TracChangeset for help on using the changeset viewer.