Changeset 13109 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 01/15/2024 05:23:52 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13061 r13109 160 160 ), 161 161 'description' => __( 'A Repo Plugin', 'wporg-plugins' ), 162 'supports' => array( 'comments', 'author', 'custom-fields' ),162 'supports' => array( 'comments', 'author', 'custom-fields', 'media' ), 163 163 'public' => true, 164 164 'show_ui' => true, … … 1742 1742 1743 1743 /** 1744 * Create a new post entry for a given plugin slug.1744 * Create (or update) a new post entry for a given plugin slug. 1745 1745 * 1746 1746 * @static … … 1805 1805 ) ); 1806 1806 1807 $update = ! empty( $args['ID'] ); 1807 1808 $result = wp_insert_post( $args, true ); 1808 1809 … … 1811 1812 $result = get_post( $result ); 1812 1813 1813 $owner = get_userdata( $result->post_author ); 1814 1815 Tools::audit_log( sprintf( 1816 'Submitted by <a href="%s">%s</a>.', 1817 esc_url( 'https://profiles.wordpress.org/' . $owner->user_nicename . '/' ), 1818 $owner->user_login 1819 ), $result->ID ); 1814 if ( ! $update ) { 1815 $owner = get_userdata( $result->post_author ); 1816 Tools::audit_log( sprintf( 1817 'Submitted by <a href="%s">%s</a>.', 1818 esc_url( 'https://profiles.wordpress.org/' . $owner->user_nicename . '/' ), 1819 $owner->user_login 1820 ), $result->ID ); 1821 } 1820 1822 } 1821 1823
Note: See TracChangeset
for help on using the changeset viewer.