golden hour
/home/phakp/public_html/wp-admin
⬆️ Go Up
Upload
File/Folder
Size
Actions
about.php
23.85 KB
Del
OK
admin-ajax.php
4.84 KB
Del
OK
admin-footer.php
2.76 KB
Del
OK
admin-functions.php
406 B
Del
OK
admin-header.php
8.8 KB
Del
OK
admin-post.php
2 KB
Del
OK
admin.php
12.26 KB
Del
OK
async-upload.php
4.56 KB
Del
OK
authorize-application.php
10.02 KB
Del
OK
comment.php
11.23 KB
Del
OK
credits.php
3.67 KB
Del
OK
css
-
Del
OK
custom-background.php
416 B
Del
OK
custom-header.php
426 B
Del
OK
customize.php
10.46 KB
Del
OK
edit-comments.php
13.74 KB
Del
OK
edit-form-advanced.php
28.28 KB
Del
OK
edit-form-blocks.php
10.74 KB
Del
OK
edit-form-comment.php
7.97 KB
Del
OK
edit-link-form.php
6.14 KB
Del
OK
edit-tag-form.php
10.18 KB
Del
OK
edit-tags.php
21.68 KB
Del
OK
edit.php
18.79 KB
Del
OK
erase-personal-data.php
7.27 KB
Del
OK
error_log
7.53 KB
Del
OK
export-personal-data.php
7.67 KB
Del
OK
export.php
10.74 KB
Del
OK
freedoms.php
4.39 KB
Del
OK
images
-
Del
OK
import.php
7.38 KB
Del
OK
includes
-
Del
OK
index.php
7.63 KB
Del
OK
install-helper.php
5.93 KB
Del
OK
install.php
16.51 KB
Del
OK
js
-
Del
OK
link-add.php
742 B
Del
OK
link-manager.php
4.15 KB
Del
OK
link-parse-opml.php
2.59 KB
Del
OK
link.php
2.7 KB
Del
OK
load-scripts.php
1.66 KB
Del
OK
load-styles.php
2.47 KB
Del
OK
maint
-
Del
OK
media-new.php
3.17 KB
Del
OK
media-upload.php
3.49 KB
Del
OK
media.php
5.48 KB
Del
OK
menu-header.php
9.82 KB
Del
OK
menu.php
15.9 KB
Del
OK
moderation.php
307 B
Del
OK
ms-admin.php
196 B
Del
OK
ms-delete-site.php
4.18 KB
Del
OK
ms-edit.php
216 B
Del
OK
ms-options.php
223 B
Del
OK
ms-sites.php
215 B
Del
OK
ms-themes.php
217 B
Del
OK
ms-upgrade-network.php
219 B
Del
OK
ms-users.php
215 B
Del
OK
my-sites.php
4.56 KB
Del
OK
nav-menus.php
45.75 KB
Del
OK
network
-
Del
OK
network.php
5.32 KB
Del
OK
options-discussion.php
15.1 KB
Del
OK
options-general.php
14.65 KB
Del
OK
options-head.php
492 B
Del
OK
options-media.php
6.18 KB
Del
OK
options-permalink.php
19.55 KB
Del
OK
options-privacy.php
9.86 KB
Del
OK
options-reading.php
9.66 KB
Del
OK
options-writing.php
8.49 KB
Del
OK
options.php
12.65 KB
Del
OK
plugin-editor.php
13.1 KB
Del
OK
plugin-install.php
6.76 KB
Del
OK
plugins.php
28.58 KB
Del
OK
post-new.php
2.64 KB
Del
OK
post.php
9.86 KB
Del
OK
press-this.php
2.33 KB
Del
OK
privacy-policy-guide.php
3.54 KB
Del
OK
privacy.php
2.42 KB
Del
OK
profile.php
283 B
Del
OK
revision.php
5.43 KB
Del
OK
setup-config.php
16.43 KB
Del
OK
site-editor.php
4.58 KB
Del
OK
site-health-info.php
3.93 KB
Del
OK
site-health.php
9.54 KB
Del
OK
term.php
2.2 KB
Del
OK
theme-editor.php
14.85 KB
Del
OK
theme-install.php
21.87 KB
Del
OK
themes.php
45.39 KB
Del
OK
tools.php
3.41 KB
Del
OK
update-core.php
43.73 KB
Del
OK
update.php
12.79 KB
Del
OK
upgrade-functions.php
341 B
Del
OK
upgrade.php
5.45 KB
Del
OK
upload.php
13.77 KB
Del
OK
user
-
Del
OK
user-edit.php
37.82 KB
Del
OK
user-new.php
23.63 KB
Del
OK
users.php
21.01 KB
Del
OK
widgets-form-blocks.php
2.48 KB
Del
OK
widgets-form.php
18.94 KB
Del
OK
widgets.php
1.09 KB
Del
OK
Edit: site-editor.php
<?php /** * Site Editor administration screen. * * @package WordPress * @subpackage Administration */ global $post, $editor_styles; /** WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 403 ); } if ( ! wp_is_block_theme() ) { wp_die( __( 'The theme you are currently using is not compatible with Full Site Editing.' ) ); } /** * Do a server-side redirection if missing `postType` and `postId` * query args when visiting Site Editor. */ $home_template = _resolve_home_block_template(); if ( $home_template && empty( $_GET['postType'] ) && empty( $_GET['postId'] ) ) { if ( ! empty( $_GET['styles'] ) ) { $home_template['styles'] = sanitize_key( $_GET['styles'] ); } $redirect_url = add_query_arg( $home_template, admin_url( 'site-editor.php' ) ); wp_safe_redirect( $redirect_url ); exit; } // Used in the HTML title tag. $title = __( 'Editor (beta)' ); $parent_file = 'themes.php'; // Flag that we're loading the block editor. $current_screen = get_current_screen(); $current_screen->is_block_editor( true ); // Default to is-fullscreen-mode to avoid jumps in the UI. add_filter( 'admin_body_class', static function( $classes ) { return "$classes is-fullscreen-mode"; } ); $indexed_template_types = array(); foreach ( get_default_block_template_types() as $slug => $template_type ) { $template_type['slug'] = (string) $slug; $indexed_template_types[] = $template_type; } $block_editor_context = new WP_Block_Editor_Context( array( 'name' => 'core/edit-site' ) ); $custom_settings = array( 'siteUrl' => site_url(), 'postsPerPage' => get_option( 'posts_per_page' ), 'styles' => get_block_editor_theme_styles(), 'defaultTemplateTypes' => $indexed_template_types, 'defaultTemplatePartAreas' => get_allowed_block_template_part_areas(), '__unstableHomeTemplate' => $home_template, ); // Add additional back-compat patterns registered by `current_screen` et al. $custom_settings['__experimentalAdditionalBlockPatterns'] = WP_Block_Patterns_Registry::get_instance()->get_all_registered( true ); $custom_settings['__experimentalAdditionalBlockPatternCategories'] = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered( true ); $editor_settings = get_block_editor_settings( $custom_settings, $block_editor_context ); if ( isset( $_GET['postType'] ) && ! isset( $_GET['postId'] ) ) { $post_type = get_post_type_object( $_GET['postType'] ); if ( ! $post_type ) { wp_die( __( 'Invalid post type.' ) ); } } $active_global_styles_id = WP_Theme_JSON_Resolver::get_user_global_styles_post_id(); $active_theme = wp_get_theme()->get_stylesheet(); $preload_paths = array( array( '/wp/v2/media', 'OPTIONS' ), '/wp/v2/types?context=view', '/wp/v2/types/wp_template?context=edit', '/wp/v2/types/wp_template-part?context=edit', '/wp/v2/templates?context=edit&per_page=-1', '/wp/v2/template-parts?context=edit&per_page=-1', '/wp/v2/themes?context=edit&status=active', '/wp/v2/global-styles/' . $active_global_styles_id . '?context=edit', '/wp/v2/global-styles/' . $active_global_styles_id, '/wp/v2/global-styles/themes/' . $active_theme, ); block_editor_rest_api_preload( $preload_paths, $block_editor_context ); wp_add_inline_script( 'wp-edit-site', sprintf( 'wp.domReady( function() { wp.editSite.initializeEditor( "site-editor", %s ); } );', wp_json_encode( $editor_settings ) ) ); // Preload server-registered block schemas. wp_add_inline_script( 'wp-blocks', 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings() ) . ');' ); wp_add_inline_script( 'wp-blocks', sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $post ) ) ), 'after' ); wp_enqueue_script( 'wp-edit-site' ); wp_enqueue_script( 'wp-format-library' ); wp_enqueue_style( 'wp-edit-site' ); wp_enqueue_style( 'wp-format-library' ); wp_enqueue_media(); if ( current_theme_supports( 'wp-block-styles' ) || ( ! is_array( $editor_styles ) || count( $editor_styles ) === 0 ) ) { wp_enqueue_style( 'wp-block-library-theme' ); } /** This action is documented in wp-admin/edit-form-blocks.php */ do_action( 'enqueue_block_editor_assets' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?> <div id="site-editor" class="edit-site"></div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php';
Save