Ticket #3443: 3443.patch
File 3443.patch, 1.1 KB (added by , 7 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
1329 1329 $title = $args['post_title'] ?: $args['post_name']; 1330 1330 $slug = $args['post_name'] ?: sanitize_title( $title ); 1331 1331 1332 $post_date = current_time( 'mysql' ); 1333 $post_date_gmt = current_time( 'mysql', 1 ); 1334 1332 1335 $args = wp_parse_args( $args, array( 1333 1336 'post_title' => $title, 1334 1337 'post_name' => $slug, 1335 1338 'post_type' => 'plugin', 1336 'post_date' => '',1337 'post_date_gmt' => '',1338 'post_modified' => '',1339 'post_modified_gmt' => '',1339 'post_date' => $post_date, 1340 'post_date_gmt' => $post_date_gmt, 1341 'post_modified' => $post_date, 1342 'post_modified_gmt' => $post_date_gmt, 1340 1343 ) ); 1341 1344 1342 1345 $result = wp_insert_post( $args, true );