Submit
Path:
F:
/
Inetpub
/
vhosts
/
solasmarine.com.tr
/
httpdocs
/
wp-includes
/
blocks
/
File Content:
index.php
<?php /** * Used to set up all core blocks used with the block editor. * * @package WordPress */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } define( 'BLOCKS_PATH', ABSPATH . WPINC . '/blocks/' ); // Include files required for core blocks registration. require BLOCKS_PATH . 'legacy-widget.php'; require BLOCKS_PATH . 'widget-group.php'; require BLOCKS_PATH . 'require-dynamic-blocks.php'; /** * Registers core block style handles. * * While {@see register_block_style_handle()} is typically used for that, the way it is * implemented is inefficient for core block styles. Registering those style handles here * avoids unnecessary logic and filesystem lookups in the other function. * * @since 6.3.0 */ function register_core_block_style_handles() { $wp_version = wp_get_wp_version(); if ( ! wp_should_load_separate_core_block_assets() ) { return; } $blocks_url = includes_url( 'blocks/' ); $suffix = wp_scripts_get_suffix(); $wp_styles = wp_styles(); $style_fields = array( 'style' => 'style', 'editorStyle' => 'editor', ); static $core_blocks_meta; if ( ! $core_blocks_meta ) { $core_blocks_meta = require BLOCKS_PATH . 'blocks-json.php'; } $files = false; $transient_name = 'wp_core_block_css_files'; /* * Ignore transient cache when the development mode is set to 'core'. Why? To avoid interfering with * the core developer's workflow. */ $can_use_cached = ! wp_is_development_mode( 'core' ); if ( $can_use_cached ) { $cached_files = get_transient( $transient_name ); // Check the validity of cached values by checking against the current WordPress version. if ( is_array( $cached_files ) && isset( $cached_files['version'] ) && $cached_files['version'] === $wp_version && isset( $cached_files['files'] ) ) { $files = $cached_files['files']; } } if ( ! $files ) { $files = glob( wp_normalize_path( BLOCKS_PATH . '**/**.css' ) ); // Normalize BLOCKS_PATH prior to substitution for Windows environments. $normalized_blocks_path = wp_normalize_path( BLOCKS_PATH ); $files = array_map( static function ( $file ) use ( $normalized_blocks_path ) { return str_replace( $normalized_blocks_path, '', $file ); }, $files ); // Save core block style paths in cache when not in development mode. if ( $can_use_cached ) { set_transient( $transient_name, array( 'version' => $wp_version, 'files' => $files, ) ); } } $register_style = static function ( $name, $filename, $style_handle ) use ( $blocks_url, $suffix, $wp_styles, $files ) { $style_path = "{$name}/{$filename}{$suffix}.css"; $path = wp_normalize_path( BLOCKS_PATH . $style_path ); if ( ! in_array( $style_path, $files, true ) ) { $wp_styles->add( $style_handle, false ); return; } $wp_styles->add( $style_handle, $blocks_url . $style_path ); $wp_styles->add_data( $style_handle, 'path', $path ); $rtl_file = "{$name}/{$filename}-rtl{$suffix}.css"; if ( is_rtl() && in_array( $rtl_file, $files, true ) ) { $wp_styles->add_data( $style_handle, 'rtl', 'replace' ); $wp_styles->add_data( $style_handle, 'suffix', $suffix ); $wp_styles->add_data( $style_handle, 'path', str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $path ) ); } }; foreach ( $core_blocks_meta as $name => $schema ) { /** This filter is documented in wp-includes/blocks.php */ $schema = apply_filters( 'block_type_metadata', $schema ); // Backfill these properties similar to `register_block_type_from_metadata()`. if ( ! isset( $schema['style'] ) ) { $schema['style'] = "wp-block-{$name}"; } if ( ! isset( $schema['editorStyle'] ) ) { $schema['editorStyle'] = "wp-block-{$name}-editor"; } // Register block theme styles. $register_style( $name, 'theme', "wp-block-{$name}-theme" ); foreach ( $style_fields as $style_field => $filename ) { $style_handle = $schema[ $style_field ]; if ( is_array( $style_handle ) ) { continue; } $register_style( $name, $filename, $style_handle ); } } } add_action( 'init', 'register_core_block_style_handles', 9 ); /** * Registers core block types using metadata files. * Dynamic core blocks are registered separately. * * @since 5.5.0 */ function register_core_block_types_from_metadata() { $block_folders = require BLOCKS_PATH . 'require-static-blocks.php'; foreach ( $block_folders as $block_folder ) { register_block_type_from_metadata( BLOCKS_PATH . $block_folder ); } } add_action( 'init', 'register_core_block_types_from_metadata' ); /** * Registers the core block metadata collection. * * This function is hooked into the 'init' action with a priority of 9, * ensuring that the core block metadata is registered before the regular * block initialization that happens at priority 10. * * @since 6.7.0 */ function wp_register_core_block_metadata_collection() { wp_register_block_metadata_collection( BLOCKS_PATH, BLOCKS_PATH . 'blocks-json.php' ); } add_action( 'init', 'wp_register_core_block_metadata_collection', 9 );
Edit
Rename
Chmod
Delete
FILE
DIR
INFO
CMD
Name
Size
Permission
Action
accordion
---
0777
accordion-heading
---
0777
accordion-item
---
0777
accordion-panel
---
0777
archives
---
0777
audio
---
0777
avatar
---
0777
block
---
0777
breadcrumbs
---
0777
button
---
0777
buttons
---
0777
calendar
---
0777
categories
---
0777
code
---
0777
column
---
0777
columns
---
0777
comment-author-name
---
0777
comment-content
---
0777
comment-date
---
0777
comment-edit-link
---
0777
comment-reply-link
---
0777
comment-template
---
0777
comments
---
0777
comments-pagination
---
0777
comments-pagination-next
---
0777
comments-pagination-numbers
---
0777
comments-pagination-previous
---
0777
comments-title
---
0777
cover
---
0777
details
---
0777
embed
---
0777
file
---
0777
footnotes
---
0777
freeform
---
0777
gallery
---
0777
group
---
0777
heading
---
0777
home-link
---
0777
html
---
0777
icon
---
0777
image
---
0777
latest-comments
---
0777
latest-posts
---
0777
legacy-widget
---
0777
list
---
0777
list-item
---
0777
loginout
---
0777
math
---
0777
media-text
---
0777
missing
---
0777
more
---
0777
navigation
---
0777
navigation-link
---
0777
navigation-overlay-close
---
0777
navigation-submenu
---
0777
nextpage
---
0777
page-list
---
0777
page-list-item
---
0777
paragraph
---
0777
pattern
---
0777
post-author
---
0777
post-author-biography
---
0777
post-author-name
---
0777
post-comments-count
---
0777
post-comments-form
---
0777
post-comments-link
---
0777
post-content
---
0777
post-date
---
0777
post-excerpt
---
0777
post-featured-image
---
0777
post-navigation-link
---
0777
post-template
---
0777
post-terms
---
0777
post-time-to-read
---
0777
post-title
---
0777
preformatted
---
0777
pullquote
---
0777
query
---
0777
query-no-results
---
0777
query-pagination
---
0777
query-pagination-next
---
0777
query-pagination-numbers
---
0777
query-pagination-previous
---
0777
query-title
---
0777
query-total
---
0777
quote
---
0777
read-more
---
0777
rss
---
0777
search
---
0777
separator
---
0777
shortcode
---
0777
site-logo
---
0777
site-tagline
---
0777
site-title
---
0777
social-link
---
0777
social-links
---
0777
spacer
---
0777
table
---
0777
tag-cloud
---
0777
template-part
---
0777
term-count
---
0777
term-description
---
0777
term-name
---
0777
term-template
---
0777
terms-query
---
0777
text-columns
---
0777
verse
---
0777
video
---
0777
widget-group
---
0777
accordion-item.php
3041bytes
0666
accordion.php
1147bytes
0666
archives.php
4385bytes
0666
avatar.php
5634bytes
0666
block.php
4186bytes
0666
blocks-json.php
199123bytes
0666
breadcrumbs.php
19057bytes
0666
button.php
1752bytes
0666
calendar.php
6075bytes
0666
categories.php
4938bytes
0666
comment-author-name.php
2133bytes
0666
comment-content.php
2459bytes
0666
comment-date.php
1863bytes
0666
comment-edit-link.php
1713bytes
0666
comment-reply-link.php
2075bytes
0666
comment-template.php
4494bytes
0666
comments-pagination-next.php
1924bytes
0666
comments-pagination-numbers.php
1632bytes
0666
comments-pagination-previous.php
1790bytes
0666
comments-pagination.php
1261bytes
0666
comments-title.php
2787bytes
0666
comments.php
6784bytes
0666
cover.php
7422bytes
0666
details.php
1498bytes
0666
file.php
1879bytes
0666
footnotes.php
3818bytes
0666
gallery.php
9067bytes
0666
heading.php
1301bytes
0666
home-link.php
5438bytes
0666
icon.php
4139bytes
0666
image.php
17661bytes
0666
index.php
5111bytes
0666
latest-comments.php
5488bytes
0666
latest-posts.php
8843bytes
0666
legacy-widget.php
4011bytes
0666
list.php
1273bytes
0666
loginout.php
1664bytes
0666
media-text.php
4298bytes
0666
navigation-link.php
16221bytes
0666
navigation-overlay-close.php
1765bytes
0666
navigation-submenu.php
11744bytes
0666
navigation.php
64817bytes
0666
page-list-item.php
361bytes
0666
page-list.php
15069bytes
0666
paragraph.php
1139bytes
0666
pattern.php
1788bytes
0666
post-author-biography.php
1524bytes
0666
post-author-name.php
1951bytes
0666
post-author.php
2734bytes
0666
post-comments-count.php
1275bytes
0666
post-comments-form.php
2805bytes
0666
post-comments-link.php
2237bytes
0666
post-content.php
2347bytes
0666
post-date.php
3655bytes
0666
post-excerpt.php
4315bytes
0666
post-featured-image.php
9248bytes
0666
post-navigation-link.php
4807bytes
0666
post-template.php
5687bytes
0666
post-terms.php
3640bytes
0666
post-time-to-read.php
6411bytes
0666
post-title.php
2138bytes
0666
query-no-results.php
1847bytes
0666
query-pagination-next.php
3676bytes
0666
query-pagination-numbers.php
4700bytes
0666
query-pagination-previous.php
3473bytes
0666
query-pagination.php
1176bytes
0666
query-title.php
2771bytes
0666
query-total.php
2471bytes
0666
query.php
5690bytes
0666
read-more.php
1830bytes
0666
require-dynamic-blocks.php
4978bytes
0666
require-static-blocks.php
520bytes
0666
rss.php
4609bytes
0666
search.php
23817bytes
0666
shortcode.php
735bytes
0666
site-logo.php
6334bytes
0666
site-tagline.php
1203bytes
0666
site-title.php
1864bytes
0666
social-link.php
67602bytes
0666
tag-cloud.php
1590bytes
0666
template-part.php
10446bytes
0666
term-count.php
1843bytes
0666
term-description.php
1770bytes
0666
term-name.php
2038bytes
0666
term-template.php
4518bytes
0666
video.php
2733bytes
0666
widget-group.php
2438bytes
0666