Skip to content

Commit

Permalink
Disable DOM parser in WP Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhendricks committed Jun 9, 2018
1 parent 993098f commit bd04e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Rewrite_URLs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Rewrite_URLs {

function __construct() {

add_filter( 'final_output', array( $this, 'dom_rewrite_content_links' ) );
if( !is_admin() ) add_filter( 'final_output', array( $this, 'dom_rewrite_content_links' ) );

}

Expand Down
2 changes: 1 addition & 1 deletion rewrite-urls.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @wordpress-plugin
* Plugin Name: Rewrite Content URLs
* Plugin URI: https://bitbucket.org/ArlingtonCounty/acg-core-functionality/wiki
* Plugin URI: https://github.com/dmhendricks/wordpress-rewrite-content-urls-plugin
* Description: Allows you to rewrite URLs in content, useful for syncing production data into a development/staging environment.
* Version: 1.0.0
* Author: Daniel M. Hendricks
Expand Down

0 comments on commit bd04e95

Please sign in to comment.