Plugin Directory

Changeset 2908758


Ignore:
Timestamp:
05/06/2023 03:09:35 AM (3 years ago)
Author:
kiranpotphode
Message:

Update v1.2.2

Location:
easy-charts/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • easy-charts/trunk/README.txt

    r2106564 r2908758  
    33Tags: chart, graph, bar, line, pie, area, stacked, stacked bar, step up bar, percent bar, stacked area, percent area, donut, polar area, waterfall easy integration, uniform, data representation, simple, download as image, responsive
    44Requires at least: 3.0
    5 Tested up to: 5.2.1
    6 Stable tag: 1.2.1
     5Tested up to: 6.2
     6Stable tag: 1.2.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7878== Changelog ==
    7979
     80= 1.2.2 =
     81*Release Date - 6th May, 2023*
     82
     83* Fix Deprecation warnings.
     84
    8085= 1.2.1 =
    8186*Release Date - 20th September, 2018*
  • easy-charts/trunk/admin/class-easy-charts-admin.php

    r1944243 r2908758  
    351351        $ec_chart_graph = array(
    352352            'responsive'  => (boolean) filter_input( INPUT_POST, 'ec_chart_graph_responsive', FILTER_SANITIZE_NUMBER_INT ),
    353             'palette'     => filter_input( INPUT_POST, 'ec_chart_graph_palette', FILTER_SANITIZE_STRING ),
    354             'bgcolor'     => filter_input( INPUT_POST, 'ec_chart_graph_bgcolor', FILTER_SANITIZE_STRING ),
    355             'orientation' => filter_input( INPUT_POST, 'ec_chart_graph_orientation', FILTER_SANITIZE_STRING ),
    356             'opacity'     => (float) filter_input( INPUT_POST, 'ec_chart_graph_opacity', FILTER_SANITIZE_STRING ),
     353            'palette'     => filter_input( INPUT_POST, 'ec_chart_graph_palette', FILTER_SANITIZE_SPECIAL_CHARS ),
     354            'bgcolor'     => filter_input( INPUT_POST, 'ec_chart_graph_bgcolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     355            'orientation' => filter_input( INPUT_POST, 'ec_chart_graph_orientation', FILTER_SANITIZE_SPECIAL_CHARS ),
     356            'opacity'     => (float) filter_input( INPUT_POST, 'ec_chart_graph_opacity', FILTER_SANITIZE_SPECIAL_CHARS ),
    357357        );
    358358
    359359        $ec_chart_meta = array(
    360             'position'       => filter_input( INPUT_POST, 'ec_chart_meta_position', FILTER_SANITIZE_STRING ),
    361             'caption'        => filter_input( INPUT_POST, 'ec_chart_meta_caption', FILTER_SANITIZE_STRING ),
    362             'subcaption'     => filter_input( INPUT_POST, 'ec_chart_meta_subcaption', FILTER_SANITIZE_STRING ),
    363             'hlabel'         => filter_input( INPUT_POST, 'ec_chart_meta_hlabel', FILTER_SANITIZE_STRING ),
    364             'hsublabel'      => filter_input( INPUT_POST, 'ec_chart_meta_hsublabel', FILTER_SANITIZE_STRING ),
    365             'vlabel'         => filter_input( INPUT_POST, 'ec_chart_meta_vlabel', FILTER_SANITIZE_STRING ),
    366             'vsublabel'      => filter_input( INPUT_POST, 'ec_chart_meta_vsublabel', FILTER_SANITIZE_STRING ),
     360            'position'       => filter_input( INPUT_POST, 'ec_chart_meta_position', FILTER_SANITIZE_SPECIAL_CHARS ),
     361            'caption'        => filter_input( INPUT_POST, 'ec_chart_meta_caption', FILTER_SANITIZE_SPECIAL_CHARS ),
     362            'subcaption'     => filter_input( INPUT_POST, 'ec_chart_meta_subcaption', FILTER_SANITIZE_SPECIAL_CHARS ),
     363            'hlabel'         => filter_input( INPUT_POST, 'ec_chart_meta_hlabel', FILTER_SANITIZE_SPECIAL_CHARS ),
     364            'hsublabel'      => filter_input( INPUT_POST, 'ec_chart_meta_hsublabel', FILTER_SANITIZE_SPECIAL_CHARS ),
     365            'vlabel'         => filter_input( INPUT_POST, 'ec_chart_meta_vlabel', FILTER_SANITIZE_SPECIAL_CHARS ),
     366            'vsublabel'      => filter_input( INPUT_POST, 'ec_chart_meta_vsublabel', FILTER_SANITIZE_SPECIAL_CHARS ),
    367367            'isDownloadable' => (integer) filter_input( INPUT_POST, 'ec_chart_meta_isDownloadable', FILTER_SANITIZE_NUMBER_INT ),
    368             'downloadLabel'  => filter_input( INPUT_POST, 'ec_chart_meta_downloadLabel', FILTER_SANITIZE_STRING ),
     368            'downloadLabel'  => filter_input( INPUT_POST, 'ec_chart_meta_downloadLabel', FILTER_SANITIZE_SPECIAL_CHARS ),
    369369        );
    370370
     
    382382
    383383        $ec_chart_frame = array(
    384             'bgcolor' => filter_input( INPUT_POST, 'ec_chart_frame_bgcolor', FILTER_SANITIZE_STRING ),
     384            'bgcolor' => filter_input( INPUT_POST, 'ec_chart_frame_bgcolor', FILTER_SANITIZE_SPECIAL_CHARS ),
    385385        );
    386386
    387387        $ec_chart_axis = array(
    388             'opacity'      => (float) filter_input( INPUT_POST, 'ec_chart_axis_opacity', FILTER_SANITIZE_STRING ),
     388            'opacity'      => (float) filter_input( INPUT_POST, 'ec_chart_axis_opacity', FILTER_SANITIZE_SPECIAL_CHARS ),
    389389            'ticks'        => (integer) filter_input( INPUT_POST, 'ec_chart_axis_ticks', FILTER_SANITIZE_NUMBER_INT ),
    390390            'subticks'     => (integer) filter_input( INPUT_POST, 'ec_chart_axis_subticks', FILTER_SANITIZE_NUMBER_INT ),
    391391            'padding'      => (integer) filter_input( INPUT_POST, 'ec_chart_axis_padding', FILTER_SANITIZE_NUMBER_INT ),
    392             'strokecolor'  => filter_input( INPUT_POST, 'ec_chart_axis_strokecolor', FILTER_SANITIZE_STRING ),
     392            'strokecolor'  => filter_input( INPUT_POST, 'ec_chart_axis_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
    393393            'minor'        => (integer) filter_input( INPUT_POST, 'ec_chart_axis_minor', FILTER_SANITIZE_NUMBER_INT ),
    394             'fontfamily'   => filter_input( INPUT_POST, 'ec_chart_axis_fontfamily', FILTER_SANITIZE_STRING ),
    395             'fontsize'     => filter_input( INPUT_POST, 'ec_chart_axis_fontsize', FILTER_SANITIZE_STRING ),
    396             'fontweight'   => filter_input( INPUT_POST, 'ec_chart_axis_fontweight', FILTER_SANITIZE_STRING ),
     394            'fontfamily'   => filter_input( INPUT_POST, 'ec_chart_axis_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     395            'fontsize'     => filter_input( INPUT_POST, 'ec_chart_axis_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     396            'fontweight'   => filter_input( INPUT_POST, 'ec_chart_axis_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
    397397            'showticks'    => (integer) filter_input( INPUT_POST, 'ec_chart_axis_showticks', FILTER_SANITIZE_NUMBER_INT ),
    398398            'showsubticks' => (integer) filter_input( INPUT_POST, 'ec_chart_axis_showsubticks', FILTER_SANITIZE_NUMBER_INT ),
     
    401401
    402402        $ec_chart_label = array(
    403             'strokecolor' => filter_input( INPUT_POST, 'ec_chart_label_strokecolor', FILTER_SANITIZE_STRING ),
    404             'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_label_fontfamily', FILTER_SANITIZE_STRING ),
    405             'fontsize'    => filter_input( INPUT_POST, 'ec_chart_label_fontsize', FILTER_SANITIZE_STRING ),
    406             'fontweight'  => filter_input( INPUT_POST, 'ec_chart_label_fontweight', FILTER_SANITIZE_STRING ),
     403            'strokecolor' => filter_input( INPUT_POST, 'ec_chart_label_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     404            'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_label_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     405            'fontsize'    => filter_input( INPUT_POST, 'ec_chart_label_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     406            'fontweight'  => filter_input( INPUT_POST, 'ec_chart_label_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
    407407            'showlabel'   => (integer) filter_input( INPUT_POST, 'ec_chart_label_showlabel', FILTER_SANITIZE_NUMBER_INT ),
    408408            'precision'   => (integer) filter_input( INPUT_POST, 'ec_chart_label_precision', FILTER_SANITIZE_NUMBER_INT ),
    409             'prefix'      => filter_input( INPUT_POST, 'ec_chart_label_prefix', FILTER_SANITIZE_STRING ),
    410             'suffix'      => filter_input( INPUT_POST, 'ec_chart_label_suffix', FILTER_SANITIZE_STRING ),
     409            'prefix'      => filter_input( INPUT_POST, 'ec_chart_label_prefix', FILTER_SANITIZE_SPECIAL_CHARS ),
     410            'suffix'      => filter_input( INPUT_POST, 'ec_chart_label_suffix', FILTER_SANITIZE_SPECIAL_CHARS ),
    411411        );
    412412
    413413        $ec_chart_legend = array(
    414             'position'      => filter_input( INPUT_POST, 'ec_chart_legend_position', FILTER_SANITIZE_STRING ),
    415             'fontfamily'    => filter_input( INPUT_POST, 'ec_chart_legend_fontfamily', FILTER_SANITIZE_STRING ),
    416             'fontsize'      => filter_input( INPUT_POST, 'ec_chart_legend_fontsize', FILTER_SANITIZE_STRING ),
    417             'fontweight'    => filter_input( INPUT_POST, 'ec_chart_legend_fontweight', FILTER_SANITIZE_STRING ),
    418             'color'         => filter_input( INPUT_POST, 'ec_chart_legend_color', FILTER_SANITIZE_STRING ),
    419             'strokewidth'   => (float) filter_input( INPUT_POST, 'ec_chart_legend_strokewidth', FILTER_SANITIZE_STRING ),
     414            'position'      => filter_input( INPUT_POST, 'ec_chart_legend_position', FILTER_SANITIZE_SPECIAL_CHARS ),
     415            'fontfamily'    => filter_input( INPUT_POST, 'ec_chart_legend_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     416            'fontsize'      => filter_input( INPUT_POST, 'ec_chart_legend_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     417            'fontweight'    => filter_input( INPUT_POST, 'ec_chart_legend_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
     418            'color'         => filter_input( INPUT_POST, 'ec_chart_legend_color', FILTER_SANITIZE_SPECIAL_CHARS ),
     419            'strokewidth'   => (float) filter_input( INPUT_POST, 'ec_chart_legend_strokewidth', FILTER_SANITIZE_SPECIAL_CHARS ),
    420420            'textmargin'    => (integer) filter_input( INPUT_POST, 'ec_chart_legend_textmargin', FILTER_SANITIZE_NUMBER_INT ),
    421421            'symbolsize'    => (integer) filter_input( INPUT_POST, 'ec_chart_legend_symbolsize', FILTER_SANITIZE_NUMBER_INT ),
    422             'inactivecolor' => filter_input( INPUT_POST, 'ec_chart_legend_inactivecolor', FILTER_SANITIZE_STRING ),
     422            'inactivecolor' => filter_input( INPUT_POST, 'ec_chart_legend_inactivecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
    423423            'legendstart'   => (integer) filter_input( INPUT_POST, 'ec_chart_legend_legendstart', FILTER_SANITIZE_NUMBER_INT ),
    424             'legendtype'    => filter_input( INPUT_POST, 'ec_chart_legend_type', FILTER_SANITIZE_STRING ),
     424            'legendtype'    => filter_input( INPUT_POST, 'ec_chart_legend_type', FILTER_SANITIZE_SPECIAL_CHARS ),
    425425            'showlegends'   => (integer) filter_input( INPUT_POST, 'ec_chart_legend_showlegends', FILTER_SANITIZE_NUMBER_INT ),
    426426        );
    427427
    428428        $ec_chart_scale = array(
    429             'type'       => filter_input( INPUT_POST, 'ec_chart_scale_type', FILTER_SANITIZE_STRING ),
    430             'ordinality' => (float) filter_input( INPUT_POST, 'ec_chart_scale_ordinality', FILTER_SANITIZE_STRING ),
     429            'type'       => filter_input( INPUT_POST, 'ec_chart_scale_type', FILTER_SANITIZE_SPECIAL_CHARS ),
     430            'ordinality' => (float) filter_input( INPUT_POST, 'ec_chart_scale_ordinality', FILTER_SANITIZE_SPECIAL_CHARS ),
    431431        );
    432432
    433433        $ec_chart_tooltip = array(
    434434            'show'   => (integer) filter_input( INPUT_POST, 'ec_chart_tooltip_show', FILTER_SANITIZE_NUMBER_INT ),
    435             'format' => filter_input( INPUT_POST, 'ec_chart_tooltip_format', FILTER_SANITIZE_STRING ),
     435            'format' => filter_input( INPUT_POST, 'ec_chart_tooltip_format', FILTER_SANITIZE_SPECIAL_CHARS ),
    436436        );
    437437
    438438        $ec_chart_caption = array(
    439             'fontfamily'     => filter_input( INPUT_POST, 'ec_chart_caption_fontfamily', FILTER_SANITIZE_STRING ),
    440             'fontsize'       => filter_input( INPUT_POST, 'ec_chart_caption_fontsize', FILTER_SANITIZE_STRING ),
    441             'fontweight'     => filter_input( INPUT_POST, 'ec_chart_caption_fontweight', FILTER_SANITIZE_STRING ),
    442             'textdecoration' => filter_input( INPUT_POST, 'ec_chart_caption_textdecoration', FILTER_SANITIZE_STRING ),
    443             'strokecolor'    => filter_input( INPUT_POST, 'ec_chart_caption_strokecolor', FILTER_SANITIZE_STRING ),
    444             'cursor'         => filter_input( INPUT_POST, 'ec_chart_caption_cursor', FILTER_SANITIZE_STRING ),
     439            'fontfamily'     => filter_input( INPUT_POST, 'ec_chart_caption_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     440            'fontsize'       => filter_input( INPUT_POST, 'ec_chart_caption_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     441            'fontweight'     => filter_input( INPUT_POST, 'ec_chart_caption_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
     442            'textdecoration' => filter_input( INPUT_POST, 'ec_chart_caption_textdecoration', FILTER_SANITIZE_SPECIAL_CHARS ),
     443            'strokecolor'    => filter_input( INPUT_POST, 'ec_chart_caption_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     444            'cursor'         => filter_input( INPUT_POST, 'ec_chart_caption_cursor', FILTER_SANITIZE_SPECIAL_CHARS ),
    445445        );
    446446
    447447        $ec_chart_subcaption = array(
    448             'fontfamily'     => filter_input( INPUT_POST, 'ec_chart_subcaption_fontfamily', FILTER_SANITIZE_STRING ),
    449             'fontsize'       => filter_input( INPUT_POST, 'ec_chart_subcaption_fontsize', FILTER_SANITIZE_STRING ),
    450             'fontweight'     => filter_input( INPUT_POST, 'ec_chart_subcaption_fontweight', FILTER_SANITIZE_STRING ),
    451             'textdecoration' => filter_input( INPUT_POST, 'ec_chart_subcaption_textdecoration', FILTER_SANITIZE_STRING ),
    452             'strokecolor'    => filter_input( INPUT_POST, 'ec_chart_subcaption_strokecolor', FILTER_SANITIZE_STRING ),
    453             'cursor'         => filter_input( INPUT_POST, 'ec_chart_subcaption_cursor', FILTER_SANITIZE_STRING ),
     448            'fontfamily'     => filter_input( INPUT_POST, 'ec_chart_subcaption_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     449            'fontsize'       => filter_input( INPUT_POST, 'ec_chart_subcaption_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     450            'fontweight'     => filter_input( INPUT_POST, 'ec_chart_subcaption_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
     451            'textdecoration' => filter_input( INPUT_POST, 'ec_chart_subcaption_textdecoration', FILTER_SANITIZE_SPECIAL_CHARS ),
     452            'strokecolor'    => filter_input( INPUT_POST, 'ec_chart_subcaption_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     453            'cursor'         => filter_input( INPUT_POST, 'ec_chart_subcaption_cursor', FILTER_SANITIZE_SPECIAL_CHARS ),
    454454        );
    455455
    456456        $ec_chart_bar = array(
    457             'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_bar_fontfamily', FILTER_SANITIZE_STRING ),
    458             'fontsize'    => filter_input( INPUT_POST, 'ec_chart_bar_fontsize', FILTER_SANITIZE_STRING ),
    459             'fontweight'  => filter_input( INPUT_POST, 'ec_chart_bar_fontweight', FILTER_SANITIZE_STRING ),
    460             'strokecolor' => filter_input( INPUT_POST, 'ec_chart_bar_strokecolor', FILTER_SANITIZE_STRING ),
    461             'textcolor'   => filter_input( INPUT_POST, 'ec_chart_bar_textcolor', FILTER_SANITIZE_STRING ),
     457            'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_bar_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     458            'fontsize'    => filter_input( INPUT_POST, 'ec_chart_bar_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     459            'fontweight'  => filter_input( INPUT_POST, 'ec_chart_bar_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
     460            'strokecolor' => filter_input( INPUT_POST, 'ec_chart_bar_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     461            'textcolor'   => filter_input( INPUT_POST, 'ec_chart_bar_textcolor', FILTER_SANITIZE_SPECIAL_CHARS ),
    462462        );
    463463
    464464        $ec_chart_line = array(
    465             'interpolation' => filter_input( INPUT_POST, 'ec_chart_line_interpolation', FILTER_SANITIZE_STRING ),
     465            'interpolation' => filter_input( INPUT_POST, 'ec_chart_line_interpolation', FILTER_SANITIZE_SPECIAL_CHARS ),
    466466        );
    467467
    468468        $ec_chart_area = array(
    469             'interpolation' => filter_input( INPUT_POST, 'ec_chart_area_interpolation', FILTER_SANITIZE_STRING ),
    470             'opacity'       => (float) filter_input( INPUT_POST, 'ec_chart_area_opacity', FILTER_SANITIZE_STRING ),
    471             'offset'        => filter_input( INPUT_POST, 'ec_chart_area_offset', FILTER_SANITIZE_STRING ),
     469            'interpolation' => filter_input( INPUT_POST, 'ec_chart_area_interpolation', FILTER_SANITIZE_SPECIAL_CHARS ),
     470            'opacity'       => (float) filter_input( INPUT_POST, 'ec_chart_area_opacity', FILTER_SANITIZE_SPECIAL_CHARS ),
     471            'offset'        => filter_input( INPUT_POST, 'ec_chart_area_offset', FILTER_SANITIZE_SPECIAL_CHARS ),
    472472        );
    473473
    474474        $ec_chart_pie = array(
    475             'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_pie_fontfamily', FILTER_SANITIZE_STRING ),
    476             'fontsize'    => filter_input( INPUT_POST, 'ec_chart_pie_fontsize', FILTER_SANITIZE_STRING ),
    477             'fontweight'  => filter_input( INPUT_POST, 'ec_chart_pie_fontweight', FILTER_SANITIZE_STRING ),
    478             'fontvariant' => filter_input( INPUT_POST, 'ec_chart_pie_fontvariant', FILTER_SANITIZE_STRING ),
    479             'fontfill'    => filter_input( INPUT_POST, 'ec_chart_pie_fontfill', FILTER_SANITIZE_STRING ),
    480             'strokecolor' => filter_input( INPUT_POST, 'ec_chart_pie_strokecolor', FILTER_SANITIZE_STRING ),
    481             'strokewidth' => filter_input( INPUT_POST, 'ec_chart_pie_strokewidth', FILTER_SANITIZE_STRING ),
     475            'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_pie_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     476            'fontsize'    => filter_input( INPUT_POST, 'ec_chart_pie_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     477            'fontweight'  => filter_input( INPUT_POST, 'ec_chart_pie_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
     478            'fontvariant' => filter_input( INPUT_POST, 'ec_chart_pie_fontvariant', FILTER_SANITIZE_SPECIAL_CHARS ),
     479            'fontfill'    => filter_input( INPUT_POST, 'ec_chart_pie_fontfill', FILTER_SANITIZE_SPECIAL_CHARS ),
     480            'strokecolor' => filter_input( INPUT_POST, 'ec_chart_pie_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     481            'strokewidth' => filter_input( INPUT_POST, 'ec_chart_pie_strokewidth', FILTER_SANITIZE_SPECIAL_CHARS ),
    482482        );
    483483
    484484        $ec_chart_donut = array(
    485             'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_donut_fontfamily', FILTER_SANITIZE_STRING ),
    486             'fontsize'    => filter_input( INPUT_POST, 'ec_chart_donut_fontsize', FILTER_SANITIZE_STRING ),
    487             'fontweight'  => filter_input( INPUT_POST, 'ec_chart_donut_fontweight', FILTER_SANITIZE_STRING ),
    488             'fontvariant' => filter_input( INPUT_POST, 'ec_chart_donut_fontvariant', FILTER_SANITIZE_STRING ),
    489             'fontfill'    => filter_input( INPUT_POST, 'ec_chart_donut_fontfill', FILTER_SANITIZE_STRING ),
    490             'strokecolor' => filter_input( INPUT_POST, 'ec_chart_donut_strokecolor', FILTER_SANITIZE_STRING ),
    491             'strokewidth' => filter_input( INPUT_POST, 'ec_chart_donut_strokewidth', FILTER_SANITIZE_STRING ),
    492             'factor'      => filter_input( INPUT_POST, 'ec_chart_donut_factor', FILTER_SANITIZE_STRING ),
    493         );
    494 
    495         update_post_meta( $post_id, '_ec_chart_type', filter_input( INPUT_POST, 'ec_chart_type', FILTER_SANITIZE_STRING ) );
     485            'fontfamily'  => filter_input( INPUT_POST, 'ec_chart_donut_fontfamily', FILTER_SANITIZE_SPECIAL_CHARS ),
     486            'fontsize'    => filter_input( INPUT_POST, 'ec_chart_donut_fontsize', FILTER_SANITIZE_SPECIAL_CHARS ),
     487            'fontweight'  => filter_input( INPUT_POST, 'ec_chart_donut_fontweight', FILTER_SANITIZE_SPECIAL_CHARS ),
     488            'fontvariant' => filter_input( INPUT_POST, 'ec_chart_donut_fontvariant', FILTER_SANITIZE_SPECIAL_CHARS ),
     489            'fontfill'    => filter_input( INPUT_POST, 'ec_chart_donut_fontfill', FILTER_SANITIZE_SPECIAL_CHARS ),
     490            'strokecolor' => filter_input( INPUT_POST, 'ec_chart_donut_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ),
     491            'strokewidth' => filter_input( INPUT_POST, 'ec_chart_donut_strokewidth', FILTER_SANITIZE_SPECIAL_CHARS ),
     492            'factor'      => filter_input( INPUT_POST, 'ec_chart_donut_factor', FILTER_SANITIZE_SPECIAL_CHARS ),
     493        );
     494
     495        update_post_meta( $post_id, '_ec_chart_type', filter_input( INPUT_POST, 'ec_chart_type', FILTER_SANITIZE_SPECIAL_CHARS ) );
    496496        update_post_meta( $post_id, '_ec_chart_meta', $ec_chart_meta );
    497497        update_post_meta( $post_id, '_ec_chart_graph', $ec_chart_graph );
     
    526526        check_ajax_referer( 'ec-ajax-nonce', '_nonce_check' );
    527527
    528         if ( 'easy_charts_save_chart_data' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING ) ) {
     528        if ( 'easy_charts_save_chart_data' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_SPECIAL_CHARS ) ) {
    529529            exit( 0 );
    530530        }
     
    545545     */
    546546    public function easy_charts_get_published_charts_callback() {
    547         if ( 'easy_charts_get_published_charts' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING ) ) {
     547        if ( 'easy_charts_get_published_charts' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_SPECIAL_CHARS ) ) {
    548548            exit( 0 );
    549549        }
  • easy-charts/trunk/admin/css/easy-charts-admin.css

    r1944243 r2908758  
    2525}
    2626
    27 #easy-charts-shortcode-metabox-wrap #easy-chart-shortcode-box input[name="ec-shortcode"] {
     27#easy-charts-shortcode-metabox-wrap #easy-chart-shortcode-box input[name=ec-shortcode] {
    2828  width: 100%;
    2929}
     
    4444#easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab.pws_show {
    4545  z-index: 100;
     46}
     47#easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab .ec-td-field label {
     48  padding: 5px;
    4649}
    4750#easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field {
     
    6467  width: 60%;
    6568}
    66 #easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field > table td.ec-td-field input[type="text"],
    67 #easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field > table td.ec-td-field input[type="number"],
     69#easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field > table td.ec-td-field input[type=text],
     70#easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field > table td.ec-td-field input[type=number],
    6871#easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field > table td.ec-td-field select {
    6972  width: 100%;
     
    7376  overflow: auto;
    7477}
     78
     79/*# sourceMappingURL=easy-charts-admin.css.map */
  • easy-charts/trunk/admin/css/easy-charts-admin.scss

    r1944243 r2908758  
    7171                }
    7272
     73                .ec-td-field{
     74                    label {
     75                        padding: 5px;
     76                    }
     77                }
     78
    7379                div.field{
    7480                    width: 100%;
  • easy-charts/trunk/easy-charts.php

    r1944243 r2908758  
    1010 * Plugin URI:        http://kiranpotphode.github.io/easy-charts/
    1111 * Description:       Build simple, reusable, customisable charts on any page or post with ease.
    12  * Version:           1.2.1
     12 * Version:           1.2.2
    1313 * Author:            Kiran Potphode
    1414 * License:           GPL-2.0+
  • easy-charts/trunk/includes/class-easy-charts.php

    r1944243 r2908758  
    173173
    174174        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
    175         $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
     175        $this->loader->add_action( 'init', $plugin_public, 'enqueue_scripts' );
    176176        $this->loader->add_action( 'init', $plugin_public, 'init' );
    177177        $this->loader->add_action( 'wp_ajax_easy_charts_save_chart_data', $plugin_public, 'init' );
  • easy-charts/trunk/public/js/easy-charts-public.js

    r1944243 r2908758  
    4949        });
    5050
    51         $('.uv-chart-div svg.uv-frame g.uv-download-options').bind('mouseenter', function(event) {
     51        $('.uv-chart-div svg.uv-frame g.uv-download-options').on('mouseenter', function(event) {
    5252            var svg = $(this).parents('.uv-chart-div svg.uv-frame');
    5353
Note: See TracChangeset for help on using the changeset viewer.