# Kan niet langer geforceerd publiceren met de Classic Editor?

**URL:** <https://meta.discourse.org/t/can-no-longer-force-publish-with-classic-editor/229057>\
**Category:** WordPress\
**Created:** [5 juni 2022 om 11:00 UTC](https://meta.discourse.org/t/can-no-longer-force-publish-with-classic-editor/229057 "2022-06-05T11:00:59Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![oopsyscoops](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@oopsyscoops](https://meta.discourse.org/u/oopsyscoops)\
**Post date:** [8 juni 2022 om 11:45 UTC](https://meta.discourse.org/t/can-no-longer-force-publish-with-classic-editor/229057/7 "2022-06-08T11:45:24Z")

</div>

Okay, we’re looking at this file:

_/lib/ **discourse-publish.php** _

And comparing 2.1.2 and 2.1.3, here are the only differences (concerning Force Publish):

```php
if ( ( 0 === $force_publish_max_age ) || $post_time >= $min_date ) {

```

was changed to:

```php
if ( ( ( 0 === $force_publish_max_age ) || $post_time >= $min_date ) && $is_rest_request ) {

```

And these additional lines were added:

```php
// The Force Publish setting can't be easily supported with both the Block and Classic editors. The $is_rest_request
// variable is used to only allow the Force Publish setting to be respected for posts published with the Block Editor.
$is_rest_request = defined( 'REST_REQUEST' ) && REST_REQUEST;

```

If I had to guess, maybe the old way was throwing errors in the Block editor? So, could it be as simple as using a conditional?

`is_block_editor` or `use_block_editor_for_post` might work:

```php
if ( is_block_editor() ) {
	// do it the new way
} else {
	// do it the old way
}

```

---

_[View the full topic](https://meta.discourse.org/t/can-no-longer-force-publish-with-classic-editor/229057)._
