Skip to content

Commit

Permalink
Remove the old meta-boxes functions and flagthem deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz committed Mar 18, 2024
1 parent 952d9af commit 0f6eff8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 38 deletions.
2 changes: 0 additions & 2 deletions accessibility-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@
require_once plugin_dir_path( __FILE__ ) . 'includes/activation.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/deactivation.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/helper-functions.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/meta-boxes.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/options-page.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/validate.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/insert.php';

/**
* Filters and Actions
*/
add_action( 'add_meta_boxes', 'edac_register_meta_boxes' );
add_action( 'admin_menu', 'edac_add_options_page' );
add_action( 'admin_init', 'edac_register_setting' );
add_action( 'admin_head', 'edac_post_on_load' );
Expand Down
24 changes: 24 additions & 0 deletions includes/deprecated/deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,27 @@ function edac_delete_cpt_posts( $post_type ) {
_deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Purge_Post_Data::delete_cpt_posts' );
Purge_Post_Data::delete_cpt_posts( $post_type );
}

/**
* Register custom meta boxes
*
* @deprecated 1.10.0
*
* @return void
*/
function edac_register_meta_boxes() {
_deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Meta_Boxes::register_meta_boxes' );
( new EDAC\Admin\Meta_Boxes() )->register_meta_boxes();
}

/**
* Render the custom meta box html
*
* @deprecated 1.10.0
*
* @return void
*/
function edac_custom_meta_box_cb() {
_deprecated_function( __FUNCTION__, '1.10.0', 'EDAC\Admin\Meta_Boxes::render' );
( new EDAC\Admin\Meta_Boxes() )->render();
}
36 changes: 0 additions & 36 deletions includes/meta-boxes.php

This file was deleted.

0 comments on commit 0f6eff8

Please sign in to comment.