WordPress/wp-admin/includes
youknowriad e1034e15f0 Posts: Ensure get_sample_permalink returns the right permalink for auto-draft posts.
The post editor uses the permalink_template property from the posts REST API to render the post slug input or not. For auto-drafts or newly created posts, this property was not set properly. This PR solves by fixing the get_sample_permalink function used to compute this property.

Props youknowriad, mcsf, antonvlasenko, azaozz, peterwilsoncc, andrewserong, hellofromTonya, spacedmonkey.
Fixes #59283.
Built from https://develop.svn.wordpress.org/trunk@58174


git-svn-id: http://core.svn.wordpress.org/trunk@57637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-05-20 09:49:16 +00:00
..
admin-filters.php Script Loader: Replace hardcoded output of style tags with calls to wp_add_inline_style. 2023-09-25 17:06:34 +00:00
admin.php
ajax-actions.php Options: Update default autoload values used in core. 2024-05-06 16:35:19 +00:00
bookmark.php
class-automatic-upgrader-skin.php
class-bulk-plugin-upgrader-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-bulk-theme-upgrader-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-bulk-upgrader-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-core-upgrader.php
class-custom-background.php Docs: Improve documentation for Custom_Image_Header and Custom_Background constructors. 2023-12-07 15:14:27 +00:00
class-custom-image-header.php Media: Accessibility: Copy attachment properties on site icon crop. 2024-03-02 20:15:13 +00:00
class-file-upload-upgrader.php Upload: Add links back to installer pages. 2024-03-07 05:58:15 +00:00
class-ftp-pure.php
class-ftp-sockets.php
class-ftp.php Filesystem API: Fix typo in ftp_base::restore(). 2024-02-12 12:07:10 +00:00
class-language-pack-upgrader-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-language-pack-upgrader.php I18N: Actually add all the files for [58061], not just the test fixtures. 2024-04-30 08:39:07 +00:00
class-pclzip.php Docs: Fix a few typos in wp-admin/includes/class-pclzip.php. 2024-03-31 05:52:15 +00:00
class-plugin-installer-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-plugin-upgrader-skin.php
class-plugin-upgrader.php Plugin Dependencies: Remove auto-deactivation and bootstrapping logic. 2024-02-20 07:27:06 +00:00
class-theme-installer-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-theme-upgrader-skin.php Upgrade/Install: Improve localized strings related to plugin/theme installation and activation. 2024-02-26 20:35:08 +00:00
class-theme-upgrader.php Upgrade/Install: Check theme compatibility during bulk upgrades. 2024-01-08 23:19:16 +00:00
class-walker-category-checklist.php
class-walker-nav-menu-checklist.php
class-walker-nav-menu-edit.php Coding Standards: Restore more descriptive variable names in a few class methods. 2023-09-14 12:46:20 +00:00
class-wp-ajax-upgrader-skin.php
class-wp-application-passwords-list-table.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
class-wp-automatic-updater.php Bootstrap/Load: Place the debugging output for automatic plugin and theme updates behind a debugging flag. 2024-05-13 15:24:11 +00:00
class-wp-comments-list-table.php Posts, Post Types: Use a consistent plural form of “status” in variable names. 2024-05-10 18:09:15 +00:00
class-wp-community-events.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:23:18 +00:00
class-wp-debug-data.php Site Health: Include site ID in debug data on multisite installations. 2024-01-07 16:09:21 +00:00
class-wp-filesystem-base.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
class-wp-filesystem-direct.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
class-wp-filesystem-ftpext.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
class-wp-filesystem-ftpsockets.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
class-wp-filesystem-ssh2.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
class-wp-importer.php
class-wp-internal-pointers.php
class-wp-links-list-table.php General: Remove any usage of wp_reset_vars(). 2024-05-01 18:01:12 +00:00
class-wp-list-table-compat.php
class-wp-list-table.php General: Consistently cast return value to int in functions that use ceil(). 2024-02-17 15:24:08 +00:00
class-wp-media-list-table.php Administration: Switch order of label/checkbox in WP_List_Table. 2023-09-22 19:58:16 +00:00
class-wp-ms-sites-list-table.php Upgrade/Install: Improve localized strings related to plugin/theme installation and activation. 2024-02-26 20:35:08 +00:00
class-wp-ms-themes-list-table.php General: Remove any usage of wp_reset_vars(). 2024-05-01 18:01:12 +00:00
class-wp-ms-users-list-table.php Docs: Fix typo in the ms_user_list_site_class filter description. 2023-11-15 09:33:26 +00:00
class-wp-plugin-install-list-table.php General: Remove any usage of wp_reset_vars(). 2024-05-01 18:01:12 +00:00
class-wp-plugins-list-table.php Administration: A11y: Replace placeholders with visible labels. 2024-05-14 16:49:09 +00:00
class-wp-post-comments-list-table.php
class-wp-posts-list-table.php Administration: Switch order of label/checkbox in WP_List_Table. 2023-09-22 19:58:16 +00:00
class-wp-privacy-data-export-requests-list-table.php
class-wp-privacy-data-removal-requests-list-table.php
class-wp-privacy-policy-content.php Privacy: Update default privacy page content to use latest block markup. 2024-02-29 12:17:08 +00:00
class-wp-privacy-requests-table.php Administration: Switch order of label/checkbox in WP_List_Table. 2023-09-22 19:58:16 +00:00
class-wp-screen.php Administration: Remove invalid attribute maxlength on number input. 2024-01-11 17:44:12 +00:00
class-wp-site-health-auto-updates.php Coding Standards: Upgrade WPCS to version 3.0.0. 2023-09-26 00:27:12 +00:00
class-wp-site-health.php Site Health: Correct the anchor for “Learn more about page cache” link. 2024-05-07 10:17:14 +00:00
class-wp-site-icon.php Media: Accessibility: Copy attachment properties on site icon crop. 2024-03-02 20:15:13 +00:00
class-wp-terms-list-table.php Administration: Switch order of label/checkbox in WP_List_Table. 2023-09-22 19:58:16 +00:00
class-wp-theme-install-list-table.php General: Remove any usage of wp_reset_vars(). 2024-05-01 18:01:12 +00:00
class-wp-themes-list-table.php Upgrade/Install: Improve localized strings related to plugin/theme installation and activation. 2024-02-26 20:35:08 +00:00
class-wp-upgrader-skin.php Docs: Add missing documentation for various upgrade/install class methods. 2024-05-02 17:20:10 +00:00
class-wp-upgrader-skins.php
class-wp-upgrader.php Upgrade/Install: Automatically roll back to the previous version when an automatic plugin update results in a fatal error on the front end of the site. 2024-05-10 11:48:15 +00:00
class-wp-users-list-table.php Docs: Correct some typos in docblocks and inline comments. 2024-01-10 11:57:15 +00:00
comment.php
continents-cities.php
credits.php
dashboard.php I18N: Add Translator comments for Planet URLs. 2024-02-08 20:36:14 +00:00
deprecated.php Docs: Correct some typos in docblocks and inline comments. 2024-01-10 11:57:15 +00:00
edit-tag-messages.php
export.php Code Modernization: Fix implicit nullable parameter type deprecation on PHP 8.4. 2024-04-15 20:03:09 +00:00
file.php Administration: Add primary class to the FTP credentials modal submit button. 2024-05-14 22:17:13 +00:00
image-edit.php Media: enable AVIF support. 2024-02-02 17:48:15 +00:00
image.php Media: Accessibility: Copy attachment properties on site icon crop. 2024-03-02 20:15:13 +00:00
import.php
list-table.php
media.php General: Consistently cast return value to int in functions that use ceil(). 2024-02-17 15:24:08 +00:00
menu.php Docs: Replace incorrect @private tags. 2023-11-06 09:27:23 +00:00
meta-boxes.php Posts, Post Types: Use a consistent plural form of “status” in variable names. 2024-05-10 18:09:15 +00:00
misc.php Docs: Various docblock improvements. 2024-05-02 13:19:14 +00:00
ms-admin-filters.php
ms-deprecated.php
ms.php Docs: Update a HelpHub link on Edit Site screen to avoid unnecessary redirection. 2024-05-11 14:47:06 +00:00
nav-menu.php General: Consistently cast return value to int in functions that use ceil(). 2024-02-17 15:24:08 +00:00
network.php Bootstrap/Load: Take the port number into consideration when determining whether a subdomain installation of Multisite is allowed. 2024-05-09 23:09:13 +00:00
noop.php Themes: Fix fatal error in load-styles.php. 2023-09-21 01:27:26 +00:00
options.php Site icon: Polish up Site Icon on the general settings screen. 2024-02-26 20:18:09 +00:00
plugin-install.php Plugins: Assign role of button to links that act as buttons. 2024-05-16 15:31:12 +00:00
plugin.php Coding Standards: Remove extra conditional in get_plugins(). 2024-04-30 16:45:14 +00:00
post.php Posts: Ensure get_sample_permalink returns the right permalink for auto-draft posts. 2024-05-20 09:49:16 +00:00
privacy-tools.php
revision.php Docs: Various improvements and corrections to inline documentation. 2024-02-16 21:47:12 +00:00
schema.php Options: Update default autoload values used in core. 2024-05-06 16:35:19 +00:00
screen.php
taxonomy.php
template.php Docs: Consistently document the $body_id global as a string. 2023-12-11 12:11:22 +00:00
theme-install.php Upgrade/Install: Improve localized strings related to plugin/theme installation and activation. 2024-02-26 20:35:08 +00:00
theme.php Coding Standards: Remove some extra trailing spaces. 2024-03-05 11:54:13 +00:00
translation-install.php
update-core.php Upgrade/Install: Update the $_old_files array for 6.5. 2024-04-01 16:38:18 +00:00
update.php I18N: Fix plural usage in wp_print_admin_notice_templates(). 2024-04-30 08:55:04 +00:00
upgrade.php Docs: Add a description for the $table_prefix global. 2024-03-07 06:11:11 +00:00
user.php Docs: Improve some DocBlocks and inline comments per the documentation standards. 2023-11-17 13:29:26 +00:00
widgets.php