mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
ob_get_contents() followed by ob_end_clean() can be replaced by ob_get_clean().
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32965 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -269,9 +269,7 @@ class WP_Customize_Section {
|
||||
final public function get_content() {
|
||||
ob_start();
|
||||
$this->maybe_render();
|
||||
$template = trim( ob_get_contents() );
|
||||
ob_end_clean();
|
||||
return $template;
|
||||
return trim( ob_get_clean() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user