Plugin Directory

Changeset 3122428


Ignore:
Timestamp:
07/20/2024 09:57:42 AM (21 months ago)
Author:
azonow
Message:

Fix a small bug about Syntax Highlight Tool

Location:
azo-ads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • azo-ads/tags/1.1.0/includes/ajax.php

    r3122416 r3122428  
    287287        $azoads_variables = json_decode( html_entity_decode( stripslashes( $azoads_variables ) ) );
    288288        foreach ( $azoads_variables as $variable_name ) {
    289             if ( isset( $_POST['type'] ) && $_POST['type'] == 'text-html-javascript' && in_array( $variable_name, array( 'content_header', 'content', 'content_footer' ) ) ) {
     289            if ( isset( $_POST['type'] ) && in_array( $variable_name, array( 'content_header', 'content', 'content_footer' ) ) ) {
    290290                $ad_data[$variable_name] = $_POST[$variable_name];
    291291            }
  • azo-ads/trunk/includes/ajax.php

    r3122416 r3122428  
    287287        $azoads_variables = json_decode( html_entity_decode( stripslashes( $azoads_variables ) ) );
    288288        foreach ( $azoads_variables as $variable_name ) {
    289             if ( isset( $_POST['type'] ) && $_POST['type'] == 'text-html-javascript' && in_array( $variable_name, array( 'content_header', 'content', 'content_footer' ) ) ) {
     289            if ( isset( $_POST['type'] ) && in_array( $variable_name, array( 'content_header', 'content', 'content_footer' ) ) ) {
    290290                $ad_data[$variable_name] = $_POST[$variable_name];
    291291            }
Note: See TracChangeset for help on using the changeset viewer.