Plugin Directory

Changeset 2790218


Ignore:
Timestamp:
09/26/2022 11:16:53 AM (3 years ago)
Author:
taboolawordpress
Message:

The version 1.0.12 has some bugs.

Location:
taboola/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • taboola/trunk/readme.txt

    r2787580 r2790218  
    6363== Changelog ==
    6464
    65 = 1.0.12 =
    66 * Minor fix for PHP 8.0.x
    67 
    6865= 1.0.11 =
    6966* Support for PHP 8.0.x
  • taboola/trunk/settings.php

    r2787580 r2790218  
    126126                <td colspan='2' style='line-height: 26px; font-size: 13px;'>
    127127                    Don't have a Publisher ID?
    128                     <a style='float: inherit; margin-left:5px; class='request_link' href=' http://taboola.com/contact' target='_blank'>Contact Taboola</a>
     128                    <a style='float: inherit; margin-left:5px; class='request_link' href=' http://taboola.com/contact' target='_blank'>Contact Taboola here</a>
    129129                </td>
    130130            </tr>
  • taboola/trunk/taboola_widget.php

    r2787580 r2790218  
    22/**
    33 * Plugin Name: Taboola
    4  * Plugin URI: https://developers.taboola.com/web-integrations/discuss
     4 * Plugin URI: http://taboola.com
    55 * Description: Taboola
    6  * Version: 1.0.12
     6 * Version: 1.0.11
    77 * Author: Taboola
    88 */
     
    1414define ("TABOOLA_CONTENT_FORMAT_SCRIPT",'script');
    1515define ("TABOOLA_CONTENT_FORMAT_HTML",'html');
    16 define ("TABOOLA_PLUGIN_VERSION","1.0.12");
     16define ("TABOOLA_PLUGIN_VERSION","1.0.11");
    1717
    1818
     
    289289                    $taboola_errors[] = "Please add a 'Publisher ID' in order to apply changes to your widgets";
    290290                }
    291                 if((isset($_POST['first_bc_enabled']) && trim($_POST['first_bc_widget_id']) == '') ||
    292                     (isset($_POST['second_bc_enabled']) && trim($_POST['second_bc_widget_id']) == '')
     291                if(($_POST['first_bc_enabled'] == 'on' && trim($_POST['first_bc_widget_id']) == '') ||
     292                    ($_POST['second_bc_enabled'] == 'on' && trim($_POST['second_bc_widget_id']) == '')
    293293                ){
    294294                    $taboola_errors[] = "Please add a 'Widget ID' in order to apply changes to your widgets";
     
    301301                    $data = array(
    302302                        "publisher_id" => trim($_POST['publisher_id']),
    303                         "first_bc_enabled" => isset($_POST['first_bc_enabled']) ? true : false,
     303                        "first_bc_enabled" => $_POST['first_bc_enabled'] == 'on' ? true : false,
    304304                        "first_bc_widget_id" => trim($_POST['first_bc_widget_id']),
    305                         "second_bc_enabled" => isset($_POST['second_bc_enabled']) ? true : false,
     305                        "second_bc_enabled" => $_POST['second_bc_enabled'] == 'on' ? true : false,
    306306                        "second_bc_widget_id" => trim($_POST['second_bc_widget_id']),
    307307                        "location_string" => trim($_POST['location_string']),
    308                         "out_of_content_enabled" => isset($_POST['out_of_content_enabled']) ? true : false
     308                        "out_of_content_enabled" => $_POST['out_of_content_enabled'] == 'on' ? true : false
    309309                    );
    310310
Note: See TracChangeset for help on using the changeset viewer.