mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 05:34:26 +00:00
Bootstrap/Load: Remove duplicate leading slashes on inclusion of various files under ABSPATH.
Props dmsnell, birgire, szepe.viktor. Fixes #46327. git-svn-id: https://develop.svn.wordpress.org/trunk@45190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1614,7 +1614,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
||||
if ( is_post_type_viewable( $post_type_obj ) && $post_type_obj->public ) {
|
||||
|
||||
if ( ! function_exists( 'get_sample_permalink' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/post.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/post.php';
|
||||
}
|
||||
|
||||
$sample_permalink = get_sample_permalink( $post->ID, $post->post_title, '' );
|
||||
|
||||
Reference in New Issue
Block a user