Changeset 62843
- Timestamp:
- 09/17/2026 05:40:12 PM (5 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/ajax-actions.php (modified) (2 diffs)
-
wp-includes/version.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r62831 r62843 2060 2060 check_ajax_referer( 'getpermalink', 'getpermalinknonce' ); 2061 2061 $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; 2062 if ( ! $post_id ) { 2063 // Bypass call to get_preview_post_link() for unspecified post ID. 2064 wp_die( '' ); 2065 } 2066 if ( ! current_user_can( 'edit_post', $post_id ) ) { 2067 wp_die( -1 ); 2068 } 2062 2069 wp_die( get_preview_post_link( $post_id ) ); 2063 2070 } … … 2071 2078 check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' ); 2072 2079 $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; 2073 $title = $_POST['new_title'] ?? ''; 2074 $slug = $_POST['new_slug'] ?? null; 2080 if ( ! $post_id ) { 2081 // Bypass call to get_sample_permalink_html() for unspecified post ID. 2082 wp_die( '' ); 2083 } 2084 if ( ! current_user_can( 'edit_post', $post_id ) ) { 2085 wp_die( -1 ); 2086 } 2087 $title = $_POST['new_title'] ?? ''; 2088 $slug = $_POST['new_slug'] ?? null; 2075 2089 wp_die( get_sample_permalink_html( $post_id, $title, $slug ) ); 2076 2090 } -
trunk/wp-includes/version.php
r62839 r62843 17 17 * @global string $wp_version 18 18 */ 19 $wp_version = '7.2-alpha-6366 5';19 $wp_version = '7.2-alpha-63669'; 20 20 21 21 /**
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)