Changeset 12284 for trunk/wp-admin/includes/post.php
- Timestamp:
- 11/26/2009 11:29:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12246 r12284 934 934 * @since unknown 935 935 * 936 * @param unknown_type $id937 * @param unknown_type $title938 * @param unknown_type $name939 * @return unknown936 * @param int|object $id Post ID or post object. 937 * @param string $title (optional) Title 938 * @param string $name (optional) Name 939 * @return array With two entries of type string 940 940 */ 941 941 function get_sample_permalink($id, $title = null, $name = null) { … … 952 952 if (in_array($post->post_status, array('draft', 'pending'))) { 953 953 $post->post_status = 'publish'; 954 $post->post_name = sanitize_title($post->post_name ? $post->post_name : $post->post_title, $post->ID);954 $post->post_name = sanitize_title($post->post_name ? $post->post_name : $post->post_title, $post->ID); 955 955 } 956 956 … … 960 960 // Note: if empty name is supplied -- use the title instead, see #6072 961 961 if (!is_null($name)) { 962 $post->post_name = sanitize_title($name ? $name : $title, $post->ID);962 $post->post_name = sanitize_title($name ? $name : $title, $post->ID); 963 963 } 964 964 … … 988 988 989 989 /** 990 * {@internal Missing Short Description}} 991 * 992 * @since unknown 993 * 994 * @param unknown_type $id 995 * @param unknown_type $new_title 996 * @param unknown_type $new_slug 997 * @return unknown 990 * sample permalink html 991 * 992 * intended to be used for the inplace editor of the permalink post slug on in the post (and page?) editor. 993 * 994 * @since unknown 995 * 996 * @param int|object $id Post ID or post object. 997 * @param string $new_title (optional) New title 998 * @param string $new_slug (optional) New slug 999 * @return string intended to be used for the inplace editor of the permalink post slug on in the post (and page?) editor. 998 1000 */ 999 1001 function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
Note: See TracChangeset
for help on using the changeset viewer.