Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 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-admin/includes/comment.php

    r47084 r47122  
    8080
    8181    if ( ! empty( $_POST['edit_date'] ) ) {
    82         $aa                    = $_POST['aa'];
    83         $mm                    = $_POST['mm'];
    84         $jj                    = $_POST['jj'];
    85         $hh                    = $_POST['hh'];
    86         $mn                    = $_POST['mn'];
    87         $ss                    = $_POST['ss'];
    88         $jj                    = ( $jj > 31 ) ? 31 : $jj;
    89         $hh                    = ( $hh > 23 ) ? $hh - 24 : $hh;
    90         $mn                    = ( $mn > 59 ) ? $mn - 60 : $mn;
    91         $ss                    = ( $ss > 59 ) ? $ss - 60 : $ss;
     82        $aa = $_POST['aa'];
     83        $mm = $_POST['mm'];
     84        $jj = $_POST['jj'];
     85        $hh = $_POST['hh'];
     86        $mn = $_POST['mn'];
     87        $ss = $_POST['ss'];
     88        $jj = ( $jj > 31 ) ? 31 : $jj;
     89        $hh = ( $hh > 23 ) ? $hh - 24 : $hh;
     90        $mn = ( $mn > 59 ) ? $mn - 60 : $mn;
     91        $ss = ( $ss > 59 ) ? $ss - 60 : $ss;
     92
    9293        $_POST['comment_date'] = "$aa-$mm-$jj $hh:$mn:$ss";
    9394    }
Note: See TracChangeset for help on using the changeset viewer.