Skip to content

Commit

Permalink
pre-release stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kprajapatii committed Dec 14, 2023
1 parent 2745f19 commit a686cd6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/aui/js/add-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ var GeoDir_Business_Hours = {
* Save all the tinymce editors or if they are in HTML mode it will not save the last changes.
*/
function geodir_save_all_tinymce_editors() {
if (typeof tinymce !== 'undefined' && tinymce.editors.length > 0) {
if (typeof tinymce !== 'undefined' && tinymce.editors && tinymce.editors.length > 0) {
for (var i = 0; i < tinymce.editors.length; i++) {
// you need to do what is needed here
// example: write the content back to the form foreach editor instance
Expand Down
2 changes: 1 addition & 1 deletion assets/aui/js/add-listing.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/add-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ var GeoDir_Business_Hours = {
* Save all the tinymce editors or if they are in HTML mode it will not save the last changes.
*/
function geodir_save_all_tinymce_editors() {
if (typeof tinymce !== 'undefined' && tinymce.editors.length > 0) {
if (typeof tinymce !== 'undefined' && tinymce.editors && tinymce.editors.length > 0) {
for (var i = 0; i < tinymce.editors.length; i++) {
// you need to do what is needed here
// example: write the content back to the form foreach editor instance
Expand Down
2 changes: 1 addition & 1 deletion assets/js/add-listing.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions includes/integrations/bricks/class-geodir-bricks.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ public static function register_provider( $providers ) {
public static function add_template_types( $control_options ) {
$template_types = $control_options['templateTypes'];

$template_types['gd_single'] = 'GD - ' . esc_html__( 'Single', 'bricks' );
$template_types['gd_archive'] = 'GD - ' . esc_html__( 'Archive', 'bricks' );
//$template_types['gd_archive_item'] = 'GD - ' . esc_html__( 'Archive Item', 'bricks' );
$template_types['gd_search'] = 'GD - ' . esc_html__( 'Search Results', 'bricks' );
$template_types['gd_single'] = 'GD - ' . esc_html__( 'Single', 'geodirectory' );
$template_types['gd_archive'] = 'GD - ' . esc_html__( 'Archive', 'geodirectory' );
//$template_types['gd_archive_item'] = 'GD - ' . esc_html__( 'Archive Item', 'geodirectory' );
$template_types['gd_search'] = 'GD - ' . esc_html__( 'Search Results', 'geodirectory' );

$control_options['templateTypes'] = $template_types;

Expand Down
2 changes: 1 addition & 1 deletion includes/widgets/class-geodir-widget-post-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function set_arguments() {
'type' => 'notice',
'desc' => __( 'This uses the custom fields output locations.', 'geodirectory' ),
'status' => 'info',
'group' => __( 'Content', 'super-duper' ),
'group' => __( 'Content', 'geodirectory' ),
'element_require' => '[%source%]=="meta_auto"',
);

Expand Down

0 comments on commit a686cd6

Please sign in to comment.