Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-includes
/
js
/
tinymce
/
skins
/
wordpress
/
File Content:
calendar-20260704073417.php
<?php /** * Server-side rendering of the `core/calendar` block. * * @package WordPress */ /** * Renders the `core/calendar` block on server. * * @param array $attributes The block attributes. * * @return string Returns the block content. */ function render_block_core_calendar( $attributes ) { global $monthnum, $year; $previous_monthnum = $monthnum; $previous_year = $year; if ( isset( $attributes['month'] ) && isset( $attributes['year'] ) ) { $permalink_structure = get_option( 'permalink_structure' ); if ( strpos( $permalink_structure, '%monthnum%' ) !== false && strpos( $permalink_structure, '%year%' ) !== false ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $monthnum = $attributes['month']; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $year = $attributes['year']; } } $wrapper_attributes = get_block_wrapper_attributes(); $output = sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, get_calendar( true, false ) ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $monthnum = $previous_monthnum; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $year = $previous_year; return $output; } /** * Registers the `core/calendar` block on server. */ function register_block_core_calendar() { register_block_type_from_metadata( __DIR__ . '/calendar', array( 'render_callback' => 'render_block_core_calendar', ) ); } add_action( 'init', 'register_block_core_calendar' );
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
images
---
0755
418.php
478 bytes
0644
Category.php
3944 bytes
0644
Exception.php
1214 bytes
0644
calendar-20260704073417.php
1569 bytes
0644
calendar.php
1569 bytes
0644
class-json.php
43441 bytes
0644
class-wp-http-streams-20260707124152.php
16117 bytes
0644
class-wp-http-streams.php
16117 bytes
0644
class-wp-network-query.php
19169 bytes
0644
class-wp-oembed-controller.php
6793 bytes
0644
class-wp-sitemaps-posts.php
5875 bytes
0644
class-wp-theme.php
51601 bytes
0644
common-rtl.css
6510 bytes
0644
dashicons.min.css
59016 bytes
0644
https-detection-20260623211809.php
6871 bytes
0644
https-detection-20260624100443.php
6871 bytes
0644
https-detection.php
6871 bytes
0644
https-migration-20260621222700-20260622020253.php
4730 bytes
0644
https-migration-20260621222700.php
4730 bytes
0644
https-migration-20260622015815.php
4730 bytes
0644
https-migration-20260622194220.php
4730 bytes
0644
https-migration-20260623222015.php
4730 bytes
0644
https-migration.php
4730 bytes
0644
php72compat_const.php
4597 bytes
0644
shortcode.php
697 bytes
0644
utils.js
4665 bytes
0644
wp-content.css
8624 bytes
0604
N4ST4R_ID | Naxtarrr