File Manager Lite
Dir:
/home/atomylvb/jarangomd.com/old/wp-admin
Upload
[..]
.htaccess_disabled (458 B)
Edit
Rename
Del
about.php (17.74 KB)
Edit
Rename
Del
admin-ajax.php (5.03 KB)
Edit
Rename
Del
admin-footer.php (2.77 KB)
Edit
Rename
Del
comment.php (11.35 KB)
Edit
Rename
Del
contribute.php (5.86 KB)
Edit
Rename
Del
credits.php (4.38 KB)
Edit
Rename
Del
css/
Rename
Del
custom-background.php (489 B)
Edit
Rename
Del
custom-header.php (499 B)
Edit
Rename
Del
edit-form-blocks.php (14.6 KB)
Edit
Rename
Del
edit-form-comment.php (8.34 KB)
Edit
Rename
Del
edit-link-form.php (6.21 KB)
Edit
Rename
Del
edit-tag-form.php (10.44 KB)
Edit
Rename
Del
edit-tags.php (22 KB)
Edit
Rename
Del
erase-personal-data.php (7.33 KB)
Edit
Rename
Del
error_log (11.9 KB)
Edit
Rename
Del
freedoms.php (4.8 KB)
Edit
Rename
Del
images/
Rename
Del
import.php (7.58 KB)
Edit
Rename
Del
includes/
Rename
Del
index.php (7.68 KB)
Edit
Rename
Del
install-helper.php (6.8 KB)
Edit
Rename
Del
js/
Rename
Del
link-manager.php (4.26 KB)
Edit
Rename
Del
link.php (2.89 KB)
Edit
Rename
Del
load-styles.php (2.92 KB)
Edit
Rename
Del
maint/
Rename
Del
media-new.php (3.2 KB)
Edit
Rename
Del
media-upload.php (3.58 KB)
Edit
Rename
Del
media.php (819 B)
Edit
Rename
Del
menu.php (17.46 KB)
Edit
Rename
Del
moderation.php (307 B)
Edit
Rename
Del
ms-admin.php (196 B)
Edit
Rename
Del
ms-delete-site.php (4.5 KB)
Edit
Rename
Del
ms-edit.php (216 B)
Edit
Rename
Del
ms-sites.php (215 B)
Edit
Rename
Del
ms-themes.php (217 B)
Edit
Rename
Del
ms-upgrade-network.php (219 B)
Edit
Rename
Del
ms-users.php (215 B)
Edit
Rename
Del
my-sites.php (4.74 KB)
Edit
Rename
Del
nav-menus.php (48.19 KB)
Edit
Rename
Del
network/
Rename
Del
network.php (5.39 KB)
Edit
Rename
Del
options-discussion.php (15.92 KB)
Edit
Rename
Del
options-general.php (21.65 KB)
Edit
Rename
Del
options-media.php (6.38 KB)
Edit
Rename
Del
options-privacy.php (9.95 KB)
Edit
Rename
Del
options-writing.php (9.1 KB)
Edit
Rename
Del
options.php (13.6 KB)
Edit
Rename
Del
post-new.php (2.7 KB)
Edit
Rename
Del
post.php (10.03 KB)
Edit
Rename
Del
press-this.php (2.34 KB)
Edit
Rename
Del
privacy-policy-guide.php (3.67 KB)
Edit
Rename
Del
privacy.php (2.79 KB)
Edit
Rename
Del
revision.php (5.7 KB)
Edit
Rename
Del
site-editor.php (11.98 KB)
Edit
Rename
Del
site-health-info.php (3.99 KB)
Edit
Rename
Del
site-health.php (10.2 KB)
Edit
Rename
Del
term.php (2.2 KB)
Edit
Rename
Del
themes.php (47.92 KB)
Edit
Rename
Del
update-core.php (45.45 KB)
Edit
Rename
Del
update.php (12.79 KB)
Edit
Rename
Del
upgrade-functions.php (341 B)
Edit
Rename
Del
upgrade.php (6.27 KB)
Edit
Rename
Del
user/
Rename
Del
user-new.php (24.05 KB)
Edit
Rename
Del
users.php (23.29 KB)
Edit
Rename
Del
Edit: 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';
Simpan