Skip to content

Commit 9dda79e

Browse files
committed
Removed old code to hide content editor
1 parent 529f878 commit 9dda79e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

framework/ACF/ACF_Register.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,14 @@ abstract class ACF_Register {
1616
use Singleton;
1717
use Has_ACF_Fields;
1818

19-
/**
20-
* Post Type for hide content.
21-
*
22-
* @var $hide_content
23-
*/
24-
public $hide_content;
25-
2619
/**
2720
* ACF_Register constructor.
2821
* - run init method to set fields configuration.
2922
* - define acf hook to register fields
3023
*/
3124
protected function __construct() {
3225
$this->init();
33-
// init WordPress hook for hide content box.
34-
add_action( 'init', function() {
35-
remove_post_type_support( $this->hide_content, 'editor' );
36-
});
26+
3727
// init ACF hook for register fields.
3828
add_action( 'acf/init', array( $this, 'register' ) );
3929
}

framework/ACF/Has_ACF_Fields.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public function has( ...$fields ) {
2222
$args = func_get_args();
2323

2424
foreach ( $args as $group ) {
25-
2625
$group = $group->getRootContext();
2726

2827
$this->set_responsive_width_classes( $group->getFields() );

0 commit comments

Comments
 (0)