7.4.33 | Linux x86_64
Server128.199.10.0
Userwww-data (uid:33)
PHP7.4.33 (apache2handler)
Terminal
Upload
Files: /var/www/html/wp-admin
View: post-new.php
<?php /** * New Post Administration Screen. * * @package WordPress * @subpackage Administration */ /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; /** * @global string $post_type Global post type. * @global WP_Post_Type $post_type_object Global post type object. * @global WP_Post $post Global post object. */ global $post_type, $post_type_object, $post; if ( ! isset( $_GET['post_type'] ) ) { $post_type = 'post'; } elseif ( in_array( $_GET['post_type'], get_post_types( array( 'show_ui' => true ) ), true ) ) { $post_type = $_GET['post_type']; } else { wp_die( __( 'Invalid post type.' ) ); } $post_type_object = get_post_type_object( $post_type ); if ( 'post' === $post_type ) { $parent_file = 'edit.php'; $submenu_file = 'post-new.php'; } elseif ( 'attachment' === $post_type ) { if ( wp_redirect( admin_url( 'media-new.php' ) ) ) { exit; } } else { $submenu_file = "post-new.php?post_type=$post_type"; if ( isset( $post_type_object ) && $post_type_object->show_in_menu && true !== $post_type_object->show_in_menu ) { $parent_file = $post_type_object->show_in_menu; // What if there isn't a post-new.php item for this post type? if ( ! isset( $_registered_pages[ get_plugin_page_hookname( "post-new.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) ) { if ( isset( $_registered_pages[ get_plugin_page_hookname( "edit.php?post_type=$post_type", $post_type_object->show_in_menu ) ] ) ) { // Fall back to edit.php for that post type, if it exists. $submenu_file = "edit.php?post_type=$post_type"; } else { // Otherwise, give up and highlight the parent. $submenu_file = $parent_file; } } } else { $parent_file = "edit.php?post_type=$post_type"; } } $title = $post_type_object->labels->add_new_item; $editing = true; if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) { wp_die( '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>', 403 ); } $post = get_default_post_to_edit( $post_type, true ); $post_ID = $post->ID; /** This filter is documented in wp-admin/post.php */ if ( apply_filters( 'replace_editor', false, $post ) !== true ) { if ( use_block_editor_for_post( $post ) ) { require ABSPATH . 'wp-admin/edit-form-blocks.php'; } else { wp_enqueue_script( 'autosave' ); require ABSPATH . 'wp-admin/edit-form-advanced.php'; } } else { // Flag that we're not loading the block editor. $current_screen = get_current_screen(); $current_screen->is_block_editor( false ); } require_once ABSPATH . 'wp-admin/admin-footer.php';
NameSizeActions
about.php16KView Edit Del
admin-ajax.php5KView Edit Del
admin-footer.php2.7KView Edit Del
admin-functions.php479BView Edit Del
admin-header.php9.1KView Edit Del
admin-post.php2KView Edit Del
admin.php12.6KView Edit Del
async-upload.php5.5KView Edit Del
authorize-application.php10.1KView Edit Del
comment.php11.4KView Edit Del
contribute.php5.9KView Edit Del
credits.php4.4KView Edit Del
css/--
custom-background.php489BView Edit Del
custom-header.php499BView Edit Del
customize.php11.2KView Edit Del
edit-comments.php14.1KView Edit Del
edit-form-advanced.php28.8KView Edit Del
edit-form-blocks.php14.7KView Edit Del
edit-form-comment.php8.3KView Edit Del
edit-link-form.php6.2KView Edit Del
edit-tag-form.php10.4KView Edit Del
edit-tags.php22KView Edit Del
edit.php19.5KView Edit Del
erase-personal-data.php7.3KView Edit Del
export-personal-data.php7.8KView Edit Del
export.php11KView Edit Del
font-library.php1KView Edit Del
freedoms.php4.8KView Edit Del
images/--
import.php7.6KView Edit Del
includes/--
index.php7.7KView Edit Del
install-helper.php6.8KView Edit Del
install.php17.9KView Edit Del
js/--
link-add.php934BView Edit Del
link-manager.php4.3KView Edit Del
link-parse-opml.php2.6KView Edit Del
link.php2.9KView Edit Del
load-scripts.php2KView Edit Del
load-styles.php2.9KView Edit Del
maint/--
media-new.php3.2KView Edit Del
media-upload.php3.6KView Edit Del
media.php819BView Edit Del
menu-header.php9.8KView Edit Del
menu.php17.7KView Edit Del
moderation.php307BView Edit Del
ms-admin.php196BView Edit Del
ms-delete-site.php4.5KView Edit Del
ms-edit.php216BView Edit Del
ms-options.php229BView Edit Del
ms-sites.php215BView Edit Del
ms-themes.php217BView Edit Del
ms-upgrade-network.php219BView Edit Del
ms-users.php215BView Edit Del
my-sites.php4.7KView Edit Del
nav-menus.php49.1KView Edit Del
network/--
network.php5.4KView Edit Del
options-connectors.php1.1KView Edit Del
options-discussion.php15.9KView Edit Del
options-general.php22.3KView Edit Del
options-head.php621BView Edit Del
options-media.php6.4KView Edit Del
options-permalink.php21.9KView Edit Del
options-privacy.php9.9KView Edit Del
options-reading.php10KView Edit Del
options-writing.php9.1KView Edit Del
options.php13.9KView Edit Del
plugin-editor.php13.8KView Edit Del
plugin-install.php7KView Edit Del
plugins.php30KView Edit Del
post-new.php2.7KView Edit Del
post.php10KView Edit Del
press-this.php2.4KView Edit Del
privacy-policy-guide.php3.7KView Edit Del
privacy.php2.8KView Edit Del
profile.php283BView Edit Del
revision.php5.7KView Edit Del
setup-config.php17.5KView Edit Del
site-editor.php12.1KView Edit Del
site-health-info.php4.1KView Edit Del
site-health.php10.2KView Edit Del
term.php2.2KView Edit Del
theme-editor.php16.9KView Edit Del
theme-install.php23.6KView Edit Del
themes.php47.9KView Edit Del
tools.php3.4KView Edit Del
update-core.php45.1KView Edit Del
update.php12.8KView Edit Del
upgrade-functions.php341BView Edit Del
upgrade.php6.2KView Edit Del
upload.php14.9KView Edit Del
user/--
user-edit.php40.4KView Edit Del
user-new.php24.1KView Edit Del
users.php23.4KView Edit Del
widgets-form-blocks.php5.1KView Edit Del
widgets-form.php19.1KView Edit Del
widgets.php1.1KView Edit Del