Skip to content

Commit

Permalink
Remove compatibility wit defunct antibrand system.
Browse files Browse the repository at this point in the history
  • Loading branch information
ControlledChaos committed Oct 22, 2024
1 parent df959e6 commit ebbfb6f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 16 deletions.
3 changes: 1 addition & 2 deletions includes/classes/backend/class-add-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,7 @@ protected function content() {
* the `views/pages` directory to output the markup of the page.
*
* The following demonstrates the basic page wrap and heading
* markup that is standard to ClassicPress, WordPress, and the
* antibrand system.
* markup that is standard to ClassicPress and WordPress.
*
* @since 1.0.0
* @access public
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/core/class-editor-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ public static function on_admin_init() {
/**
* Has blocks
*
* Support for ClassicPress, WP < 5.0, and antibrand.
* Support for ClassicPress and WP < 5.0.
*
* @since 1.0.0
* @access private
Expand Down
2 changes: 1 addition & 1 deletion includes/core/core-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function classes() {
/**
* Editor options for WordPress
*
* Not run for ClassicPress and the default antibrand system.
* Not run for ClassicPress.
* The `Core\is_classicpress()` function checks for ClassicPress.
*
* Not run if the Classic Editor plugin is active.
Expand Down
11 changes: 0 additions & 11 deletions includes/vendor/compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ function setup() {
* Used to check for the `is_user_logged_in` function.
*/

// Compatibility with ClassicPress and WordPress.
if ( ( function_exists( 'is_multisite' ) && ! is_multisite() ) && file_exists( ABSPATH . 'wp-includes/pluggable.php' ) ) {
include_once( ABSPATH . 'wp-includes/pluggable.php' );

// Compatibility with the antibrand system.
} elseif ( ( function_exists( 'is_network' ) && ! is_network() ) && defined( 'APP_INC_PATH' ) && file_exists( APP_INC_PATH . '/pluggable.php' ) ) {
include_once( APP_INC_PATH . '/pluggable.php' );
}

/**
Expand All @@ -54,14 +49,8 @@ function setup() {
* Used to check for active plugins with the `is_plugin_active` function.
*/
if ( ! function_exists( 'is_plugin_active' ) ) {

// Compatibility with ClassicPress and WordPress.
if ( file_exists( ABSPATH . 'wp-admin/includes/plugin.php' ) ) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );

// Compatibility with the antibrand system.
} elseif ( defined( 'APP_INC_PATH' ) && file_exists( APP_INC_PATH . '/backend/plugin.php' ) ) {
include_once( APP_INC_PATH . '/backend/plugin.php' );
}
}

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Site Core plugin
*
* Develop site-specific plugins for ClassicPress, WordPress, and the antibrand system.
* Develop site-specific plugins for ClassicPress and WordPress.
*
* @package Site_Core
* @subpackage Init
Expand Down

0 comments on commit ebbfb6f

Please sign in to comment.