Changeset 63708 for branches/5.4/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/17/2026 09:05:55 PM (6 hours ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
- Property svn:mergeinfo changed
/trunk merged: 62658,63656-63657,63659-63660,63665,63669,63672,63675
- Property svn:mergeinfo changed
-
branches/5.4/src/wp-admin/includes/ajax-actions.php
r56878 r63708 1952 1952 check_ajax_referer( 'getpermalink', 'getpermalinknonce' ); 1953 1953 $post_id = isset( $_POST['post_id'] ) ? intval( $_POST['post_id'] ) : 0; 1954 if ( ! $post_id ) { 1955 // Bypass call to get_preview_post_link() for unspecified post ID. 1956 wp_die( '' ); 1957 } 1958 if ( ! current_user_can( 'edit_post', $post_id ) ) { 1959 wp_die( -1 ); 1960 } 1954 1961 wp_die( get_preview_post_link( $post_id ) ); 1955 1962 } … … 1963 1970 check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' ); 1964 1971 $post_id = isset( $_POST['post_id'] ) ? intval( $_POST['post_id'] ) : 0; 1965 $title = isset( $_POST['new_title'] ) ? $_POST['new_title'] : ''; 1966 $slug = isset( $_POST['new_slug'] ) ? $_POST['new_slug'] : null; 1972 if ( ! $post_id ) { 1973 // Bypass call to get_sample_permalink_html() for unspecified post ID. 1974 wp_die( '' ); 1975 } 1976 if ( ! current_user_can( 'edit_post', $post_id ) ) { 1977 wp_die( -1 ); 1978 } 1979 $title = isset( $_POST['new_title'] ) ? $_POST['new_title'] : ''; 1980 $slug = isset( $_POST['new_slug'] ) ? $_POST['new_slug'] : null; 1967 1981 wp_die( get_sample_permalink_html( $post_id, $title, $slug ) ); 1968 1982 }
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)