Changeset 46594 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 10/26/2019 08:42:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r46091 r46594 1320 1320 * @param string $title Optional. Title to override the post's current title when generating the post name. Default null. 1321 1321 * @param string $name Optional. Name to override the post name. Default null. 1322 * @return array Array containing the sample permalink with placeholder for the post name, and the post name. 1322 * @return array { 1323 * Array containing the sample permalink with placeholder for the post name, and the post name. 1324 * 1325 * @type string $0 The permalink with placeholder for the post name. 1326 * @type string $1 The post name. 1327 * } 1323 1328 */ 1324 1329 function get_sample_permalink( $id, $title = null, $name = null ) { … … 1384 1389 * @since 4.4.0 1385 1390 * 1386 * @param array $permalink Array containing the sample permalink with placeholder for the post name, and the post name. 1391 * @param array $permalink { 1392 * Array containing the sample permalink with placeholder for the post name, and the post name. 1393 * 1394 * @type string $0 The permalink with placeholder for the post name. 1395 * @type string $1 The post name. 1396 * } 1387 1397 * @param int $post_id Post ID. 1388 1398 * @param string $title Post title. … … 1638 1648 1639 1649 if ( $user ) { 1640 1641 1650 /** 1642 1651 * Filters whether to show the post locked dialog. 1643 1652 * 1644 * Returning a falsey value to the filter will short-circuit displaying the dialog.1653 * Returning false from the filter will prevent the dialog from being displayed. 1645 1654 * 1646 1655 * @since 3.6.0 1647 1656 * 1648 * @param bool 1649 * @param WP_Post 1650 * @param WP_User |bool $user WP_User object on success, false otherwise.1657 * @param bool $display Whether to display the dialog. Default true. 1658 * @param WP_Post $post Post object. 1659 * @param WP_User $user The user with the lock for the post. 1651 1660 */ 1652 1661 if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) { … … 1697 1706 * Filters whether to allow the post lock to be overridden. 1698 1707 * 1699 * Returning a falsey value tothe filter will disable the ability1708 * Returning false from the filter will disable the ability 1700 1709 * to override the post lock. 1701 1710 * 1702 1711 * @since 3.6.0 1703 1712 * 1704 * @param bool $override Whether to allow overriding post locks. Default true.1713 * @param bool $override Whether to allow the post lock to be overridden. Default true. 1705 1714 * @param WP_Post $post Post object. 1706 * @param WP_User $user User object.1715 * @param WP_User $user The user with the lock for the post. 1707 1716 */ 1708 1717 $override = apply_filters( 'override_post_lock', true, $post, $user );
Note: See TracChangeset
for help on using the changeset viewer.