File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
framework/Page_Builder/v25/Traits Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function add_row_options( $fields ) {
78
78
* @param string $title optional. to rewrite row layout title.
79
79
*/
80
80
public function register_row_layout ( $ class_name , $ title = '' ) {
81
- if ( strpos ( $ class_name , '\\' ) !== 0 ) {
81
+ if ( ! class_exists ( $ class_name ) && strpos ( $ class_name , '\\' ) !== 0 ) {
82
82
$ class_name = $ this ->default_layout_namespace . '\\' . $ class_name ;
83
83
}
84
84
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function add_widget_options( $fields ) {
78
78
* @param string $title optional. to rewrite row layout title.
79
79
*/
80
80
public function register_widget_layout ( $ class_name , $ title = '' ) {
81
- if ( strpos ( $ class_name , '\\' ) !== 0 ) {
81
+ if ( ! class_exists ( $ class_name ) && strpos ( $ class_name , '\\' ) !== 0 ) {
82
82
$ class_name = $ this ->default_layout_namespace . '\\' . $ class_name ;
83
83
}
84
84
You can’t perform that action at this time.
0 commit comments