Make WordPress Core


Ignore:
Timestamp:
09/09/2015 01:12:41 AM (9 years ago)
Author:
wonderboymusic
Message:

In WP_User, add @property docs for description, first_name, and last_name. user_firstname and user_lastname only exist for back-compat.

See #33491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r33891 r33958  
    275275            echo '<wp:author_email>' . $author->user_email . '</wp:author_email>';
    276276            echo '<wp:author_display_name>' . wxr_cdata( $author->display_name ) . '</wp:author_display_name>';
    277             echo '<wp:author_first_name>' . wxr_cdata( $author->user_firstname ) . '</wp:author_first_name>';
    278             echo '<wp:author_last_name>' . wxr_cdata( $author->user_lastname ) . '</wp:author_last_name>';
     277            echo '<wp:author_first_name>' . wxr_cdata( $author->first_name ) . '</wp:author_first_name>';
     278            echo '<wp:author_last_name>' . wxr_cdata( $author->last_name ) . '</wp:author_last_name>';
    279279            echo "</wp:author>\n";
    280280        }
Note: See TracChangeset for help on using the changeset viewer.