X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/generateblocks/includes
home
/
freights
/
public_html
/
wp-content
/
plugins
/
generateblocks
/
includes
/
??
..
??
awwdxigk
(9.03 KB)
??
blocks
??
class-do-css.php
(5.75 KB)
??
class-dynamic-content.php
(31.43 KB)
??
class-enqueue-css.php
(14.62 KB)
??
class-legacy-attributes.php
(3.4 KB)
??
class-map-deprecated-attributes.php
(6.31 KB)
??
class-meta-handler.php
(11.1 KB)
??
class-plugin-update.php
(1.81 KB)
??
class-query-utils.php
(8.09 KB)
??
class-render-blocks.php
(7.25 KB)
??
class-rest.php
(8.41 KB)
??
class-settings.php
(3.44 KB)
??
dashboard.php
(7.32 KB)
??
defaults.php
(5.66 KB)
??
deprecated.php
(1.84 KB)
??
dynamic-tags
??
functions.php
(59.94 KB)
??
general.php
(20.66 KB)
??
pattern-library
??
utils
Editing: deprecated.php
<?php /** * Deprecated functions. * * @package GenerateBlocks */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Redirect to the Dashboard page on single plugin activation. * * @since 0.1 * @deprecated 2.0.0 */ function generateblocks_dashboard_redirect() { $do_redirect = apply_filters( 'generateblocks_do_activation_redirect', get_option( 'generateblocks_do_activation_redirect', false ) ); if ( $do_redirect ) { delete_option( 'generateblocks_do_activation_redirect' ); wp_safe_redirect( esc_url( admin_url( 'admin.php?page=generateblocks' ) ) ); exit; } } /** * Adds a redirect option during plugin activation on non-multisite installs. * * @since 0.1 * @deprecated 2.0.0 * * @param bool $network_wide Whether or not the plugin is being network activated. */ function generateblocks_do_activate( $network_wide = false ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Only used to do a redirect. False positive. if ( ! $network_wide && ! isset( $_GET['activate-multi'] ) ) { update_option( 'generateblocks_do_activation_redirect', true ); } } /** * Output permissions for use in admin objects. * * @deprecated 2.1.0 * @return void */ function generateblocks_admin_head_scripts() { $permissions = apply_filters( 'generateblocks_permissions', [ 'isAdminUser' => current_user_can( 'manage_options' ), 'canEditPosts' => current_user_can( 'edit_posts' ), 'isGbProActive' => is_plugin_active( 'generateblocks-pro/plugin.php' ), 'isGpPremiumActive' => is_plugin_active( 'gp-premium/gp-premium.php' ), ] ); $permission_object = wp_json_encode( $permissions ); echo sprintf( '<script> const gbPermissions = %s; Object.freeze( gbPermissions ); </script>', $permission_object // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); }
Upload File
Create Folder