Ticket #33927: 33927.patch
| File 33927.patch, 1.1 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/post.php
1350 1350 * Filter the sample permalink HTML markup. 1351 1351 * 1352 1352 * @since 2.9.0 1353 * @since 4.4.0 Added `$post` parameter. 1353 1354 * 1354 * @param string $return Sample permalink HTML markup. 1355 * @param int|WP_Post $id Post object or ID. 1356 * @param string $new_title New sample permalink title. 1357 * @param string $new_slug New sample permalink slug. 1355 * @param string $return Sample permalink HTML markup. 1356 * @param int $post_id Post ID. 1357 * @param string $new_title New sample permalink title. 1358 * @param string $new_slug New sample permalink slug. 1359 * @param WP_Post $post Post object. 1358 1360 */ 1359 $return = apply_filters( 'get_sample_permalink_html', $return, $ id, $new_title, $new_slug);1361 $return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post ); 1360 1362 1361 1363 return $return; 1362 1364 }