Changeset 34176
- Timestamp:
- 09/15/2015 08:24:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r34175 r34176 1160 1160 1161 1161 /** 1162 * Retrieve preview post link.1163 * 1164 * Get the preview post URL. Allow any number ofquery args to be appended.1162 * Retrieve URL used for the post preview. 1163 * 1164 * Get the preview post URL. Allows additional query args to be appended. 1165 1165 * 1166 1166 * @since 4.4.0 1167 1167 * 1168 * @param int $post Optional. Post ID or WP_Postobject. Defaults to global post.1169 * @param array $query_args Optional. If preview query arg should be added. Or array of query args to be added.1170 * @param string $preview_link Optional. If a link other than the permalink should be used. Used by _wp_link_page.1171 * @return string 1168 * @param int|WP_Post $post Optional. Post ID or `WP_Post` object. Defaults to global post. 1169 * @param array $query_args Optional. Array of additional query args to be appended to the link. 1170 * @param string $preview_link Optional. Base preview link to be used if it should differ from the post permalink. 1171 * @return string URL used for the post preview. 1172 1172 */ 1173 1173 function get_preview_post_link( $post = null, $query_args = array(), $preview_link = '' ) { … … 1188 1188 1189 1189 /** 1190 * Filter the UR I of a post preview in the post submit box.1190 * Filter the URL used for a post preview. 1191 1191 * 1192 1192 * @since 2.0.5 1193 1193 * @since 4.4.0 $post parameter was added. 1194 1194 * 1195 * @param string $preview_link UR I the user will be directed to for apost preview.1195 * @param string $preview_link URL used for the post preview. 1196 1196 * @param WP_Post $post Post object. 1197 1197 */
Note: See TracChangeset
for help on using the changeset viewer.