Changeset 63703 for branches/5.9/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/17/2026 08:57:16 PM (8 weeks ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
- Property svn:mergeinfo changed
/trunk merged: 62658,63656-63657,63659-63660,63663,63665,63669-63670,63672,63675
- Property svn:mergeinfo changed
-
branches/5.9/src/wp-admin/includes/ajax-actions.php
r56875 r63703 1965 1965 check_ajax_referer( 'getpermalink', 'getpermalinknonce' ); 1966 1966 $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; 1967 if ( ! $post_id ) { 1968 // Bypass call to get_preview_post_link() for unspecified post ID. 1969 wp_die( '' ); 1970 } 1971 if ( ! current_user_can( 'edit_post', $post_id ) ) { 1972 wp_die( -1 ); 1973 } 1967 1974 wp_die( get_preview_post_link( $post_id ) ); 1968 1975 } … … 1976 1983 check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' ); 1977 1984 $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; 1978 $title = isset( $_POST['new_title'] ) ? $_POST['new_title'] : ''; 1979 $slug = isset( $_POST['new_slug'] ) ? $_POST['new_slug'] : null; 1985 if ( ! $post_id ) { 1986 // Bypass call to get_sample_permalink_html() for unspecified post ID. 1987 wp_die( '' ); 1988 } 1989 if ( ! current_user_can( 'edit_post', $post_id ) ) { 1990 wp_die( -1 ); 1991 } 1992 $title = isset( $_POST['new_title'] ) ? $_POST['new_title'] : ''; 1993 $slug = isset( $_POST['new_slug'] ) ? $_POST['new_slug'] : null; 1980 1994 wp_die( get_sample_permalink_html( $post_id, $title, $slug ) ); 1981 1995 }
Note:
See TracChangeset
for help on using the changeset viewer.