Changeset 2908758
- Timestamp:
- 05/06/2023 03:09:35 AM (3 years ago)
- Location:
- easy-charts/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
admin/class-easy-charts-admin.php (modified) (5 diffs)
-
admin/css/easy-charts-admin.css (modified) (4 diffs)
-
admin/css/easy-charts-admin.scss (modified) (1 diff)
-
easy-charts.php (modified) (1 diff)
-
includes/class-easy-charts.php (modified) (1 diff)
-
public/js/easy-charts-public.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-charts/trunk/README.txt
r2106564 r2908758 3 3 Tags: 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 4 4 Requires at least: 3.0 5 Tested up to: 5.2.16 Stable tag: 1.2. 15 Tested up to: 6.2 6 Stable tag: 1.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 78 78 == Changelog == 79 79 80 = 1.2.2 = 81 *Release Date - 6th May, 2023* 82 83 * Fix Deprecation warnings. 84 80 85 = 1.2.1 = 81 86 *Release Date - 20th September, 2018* -
easy-charts/trunk/admin/class-easy-charts-admin.php
r1944243 r2908758 351 351 $ec_chart_graph = array( 352 352 '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_S TRING),354 'bgcolor' => filter_input( INPUT_POST, 'ec_chart_graph_bgcolor', FILTER_SANITIZE_S TRING),355 'orientation' => filter_input( INPUT_POST, 'ec_chart_graph_orientation', FILTER_SANITIZE_S TRING),356 'opacity' => (float) filter_input( INPUT_POST, 'ec_chart_graph_opacity', FILTER_SANITIZE_S TRING),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 ), 357 357 ); 358 358 359 359 $ec_chart_meta = array( 360 'position' => filter_input( INPUT_POST, 'ec_chart_meta_position', FILTER_SANITIZE_S TRING),361 'caption' => filter_input( INPUT_POST, 'ec_chart_meta_caption', FILTER_SANITIZE_S TRING),362 'subcaption' => filter_input( INPUT_POST, 'ec_chart_meta_subcaption', FILTER_SANITIZE_S TRING),363 'hlabel' => filter_input( INPUT_POST, 'ec_chart_meta_hlabel', FILTER_SANITIZE_S TRING),364 'hsublabel' => filter_input( INPUT_POST, 'ec_chart_meta_hsublabel', FILTER_SANITIZE_S TRING),365 'vlabel' => filter_input( INPUT_POST, 'ec_chart_meta_vlabel', FILTER_SANITIZE_S TRING),366 'vsublabel' => filter_input( INPUT_POST, 'ec_chart_meta_vsublabel', FILTER_SANITIZE_S TRING),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 ), 367 367 '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_S TRING),368 'downloadLabel' => filter_input( INPUT_POST, 'ec_chart_meta_downloadLabel', FILTER_SANITIZE_SPECIAL_CHARS ), 369 369 ); 370 370 … … 382 382 383 383 $ec_chart_frame = array( 384 'bgcolor' => filter_input( INPUT_POST, 'ec_chart_frame_bgcolor', FILTER_SANITIZE_S TRING),384 'bgcolor' => filter_input( INPUT_POST, 'ec_chart_frame_bgcolor', FILTER_SANITIZE_SPECIAL_CHARS ), 385 385 ); 386 386 387 387 $ec_chart_axis = array( 388 'opacity' => (float) filter_input( INPUT_POST, 'ec_chart_axis_opacity', FILTER_SANITIZE_S TRING),388 'opacity' => (float) filter_input( INPUT_POST, 'ec_chart_axis_opacity', FILTER_SANITIZE_SPECIAL_CHARS ), 389 389 'ticks' => (integer) filter_input( INPUT_POST, 'ec_chart_axis_ticks', FILTER_SANITIZE_NUMBER_INT ), 390 390 'subticks' => (integer) filter_input( INPUT_POST, 'ec_chart_axis_subticks', FILTER_SANITIZE_NUMBER_INT ), 391 391 '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_S TRING),392 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_axis_strokecolor', FILTER_SANITIZE_SPECIAL_CHARS ), 393 393 '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_S TRING),395 'fontsize' => filter_input( INPUT_POST, 'ec_chart_axis_fontsize', FILTER_SANITIZE_S TRING),396 'fontweight' => filter_input( INPUT_POST, 'ec_chart_axis_fontweight', FILTER_SANITIZE_S TRING),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 ), 397 397 'showticks' => (integer) filter_input( INPUT_POST, 'ec_chart_axis_showticks', FILTER_SANITIZE_NUMBER_INT ), 398 398 'showsubticks' => (integer) filter_input( INPUT_POST, 'ec_chart_axis_showsubticks', FILTER_SANITIZE_NUMBER_INT ), … … 401 401 402 402 $ec_chart_label = array( 403 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_label_strokecolor', FILTER_SANITIZE_S TRING),404 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_label_fontfamily', FILTER_SANITIZE_S TRING),405 'fontsize' => filter_input( INPUT_POST, 'ec_chart_label_fontsize', FILTER_SANITIZE_S TRING),406 'fontweight' => filter_input( INPUT_POST, 'ec_chart_label_fontweight', FILTER_SANITIZE_S TRING),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 ), 407 407 'showlabel' => (integer) filter_input( INPUT_POST, 'ec_chart_label_showlabel', FILTER_SANITIZE_NUMBER_INT ), 408 408 '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_S TRING),410 'suffix' => filter_input( INPUT_POST, 'ec_chart_label_suffix', FILTER_SANITIZE_S TRING),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 ), 411 411 ); 412 412 413 413 $ec_chart_legend = array( 414 'position' => filter_input( INPUT_POST, 'ec_chart_legend_position', FILTER_SANITIZE_S TRING),415 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_legend_fontfamily', FILTER_SANITIZE_S TRING),416 'fontsize' => filter_input( INPUT_POST, 'ec_chart_legend_fontsize', FILTER_SANITIZE_S TRING),417 'fontweight' => filter_input( INPUT_POST, 'ec_chart_legend_fontweight', FILTER_SANITIZE_S TRING),418 'color' => filter_input( INPUT_POST, 'ec_chart_legend_color', FILTER_SANITIZE_S TRING),419 'strokewidth' => (float) filter_input( INPUT_POST, 'ec_chart_legend_strokewidth', FILTER_SANITIZE_S TRING),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 ), 420 420 'textmargin' => (integer) filter_input( INPUT_POST, 'ec_chart_legend_textmargin', FILTER_SANITIZE_NUMBER_INT ), 421 421 '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_S TRING),422 'inactivecolor' => filter_input( INPUT_POST, 'ec_chart_legend_inactivecolor', FILTER_SANITIZE_SPECIAL_CHARS ), 423 423 '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_S TRING),424 'legendtype' => filter_input( INPUT_POST, 'ec_chart_legend_type', FILTER_SANITIZE_SPECIAL_CHARS ), 425 425 'showlegends' => (integer) filter_input( INPUT_POST, 'ec_chart_legend_showlegends', FILTER_SANITIZE_NUMBER_INT ), 426 426 ); 427 427 428 428 $ec_chart_scale = array( 429 'type' => filter_input( INPUT_POST, 'ec_chart_scale_type', FILTER_SANITIZE_S TRING),430 'ordinality' => (float) filter_input( INPUT_POST, 'ec_chart_scale_ordinality', FILTER_SANITIZE_S TRING),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 ), 431 431 ); 432 432 433 433 $ec_chart_tooltip = array( 434 434 '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_S TRING),435 'format' => filter_input( INPUT_POST, 'ec_chart_tooltip_format', FILTER_SANITIZE_SPECIAL_CHARS ), 436 436 ); 437 437 438 438 $ec_chart_caption = array( 439 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_caption_fontfamily', FILTER_SANITIZE_S TRING),440 'fontsize' => filter_input( INPUT_POST, 'ec_chart_caption_fontsize', FILTER_SANITIZE_S TRING),441 'fontweight' => filter_input( INPUT_POST, 'ec_chart_caption_fontweight', FILTER_SANITIZE_S TRING),442 'textdecoration' => filter_input( INPUT_POST, 'ec_chart_caption_textdecoration', FILTER_SANITIZE_S TRING),443 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_caption_strokecolor', FILTER_SANITIZE_S TRING),444 'cursor' => filter_input( INPUT_POST, 'ec_chart_caption_cursor', FILTER_SANITIZE_S TRING),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 ), 445 445 ); 446 446 447 447 $ec_chart_subcaption = array( 448 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_subcaption_fontfamily', FILTER_SANITIZE_S TRING),449 'fontsize' => filter_input( INPUT_POST, 'ec_chart_subcaption_fontsize', FILTER_SANITIZE_S TRING),450 'fontweight' => filter_input( INPUT_POST, 'ec_chart_subcaption_fontweight', FILTER_SANITIZE_S TRING),451 'textdecoration' => filter_input( INPUT_POST, 'ec_chart_subcaption_textdecoration', FILTER_SANITIZE_S TRING),452 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_subcaption_strokecolor', FILTER_SANITIZE_S TRING),453 'cursor' => filter_input( INPUT_POST, 'ec_chart_subcaption_cursor', FILTER_SANITIZE_S TRING),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 ), 454 454 ); 455 455 456 456 $ec_chart_bar = array( 457 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_bar_fontfamily', FILTER_SANITIZE_S TRING),458 'fontsize' => filter_input( INPUT_POST, 'ec_chart_bar_fontsize', FILTER_SANITIZE_S TRING),459 'fontweight' => filter_input( INPUT_POST, 'ec_chart_bar_fontweight', FILTER_SANITIZE_S TRING),460 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_bar_strokecolor', FILTER_SANITIZE_S TRING),461 'textcolor' => filter_input( INPUT_POST, 'ec_chart_bar_textcolor', FILTER_SANITIZE_S TRING),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 ), 462 462 ); 463 463 464 464 $ec_chart_line = array( 465 'interpolation' => filter_input( INPUT_POST, 'ec_chart_line_interpolation', FILTER_SANITIZE_S TRING),465 'interpolation' => filter_input( INPUT_POST, 'ec_chart_line_interpolation', FILTER_SANITIZE_SPECIAL_CHARS ), 466 466 ); 467 467 468 468 $ec_chart_area = array( 469 'interpolation' => filter_input( INPUT_POST, 'ec_chart_area_interpolation', FILTER_SANITIZE_S TRING),470 'opacity' => (float) filter_input( INPUT_POST, 'ec_chart_area_opacity', FILTER_SANITIZE_S TRING),471 'offset' => filter_input( INPUT_POST, 'ec_chart_area_offset', FILTER_SANITIZE_S TRING),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 ), 472 472 ); 473 473 474 474 $ec_chart_pie = array( 475 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_pie_fontfamily', FILTER_SANITIZE_S TRING),476 'fontsize' => filter_input( INPUT_POST, 'ec_chart_pie_fontsize', FILTER_SANITIZE_S TRING),477 'fontweight' => filter_input( INPUT_POST, 'ec_chart_pie_fontweight', FILTER_SANITIZE_S TRING),478 'fontvariant' => filter_input( INPUT_POST, 'ec_chart_pie_fontvariant', FILTER_SANITIZE_S TRING),479 'fontfill' => filter_input( INPUT_POST, 'ec_chart_pie_fontfill', FILTER_SANITIZE_S TRING),480 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_pie_strokecolor', FILTER_SANITIZE_S TRING),481 'strokewidth' => filter_input( INPUT_POST, 'ec_chart_pie_strokewidth', FILTER_SANITIZE_S TRING),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 ), 482 482 ); 483 483 484 484 $ec_chart_donut = array( 485 'fontfamily' => filter_input( INPUT_POST, 'ec_chart_donut_fontfamily', FILTER_SANITIZE_S TRING),486 'fontsize' => filter_input( INPUT_POST, 'ec_chart_donut_fontsize', FILTER_SANITIZE_S TRING),487 'fontweight' => filter_input( INPUT_POST, 'ec_chart_donut_fontweight', FILTER_SANITIZE_S TRING),488 'fontvariant' => filter_input( INPUT_POST, 'ec_chart_donut_fontvariant', FILTER_SANITIZE_S TRING),489 'fontfill' => filter_input( INPUT_POST, 'ec_chart_donut_fontfill', FILTER_SANITIZE_S TRING),490 'strokecolor' => filter_input( INPUT_POST, 'ec_chart_donut_strokecolor', FILTER_SANITIZE_S TRING),491 'strokewidth' => filter_input( INPUT_POST, 'ec_chart_donut_strokewidth', FILTER_SANITIZE_S TRING),492 'factor' => filter_input( INPUT_POST, 'ec_chart_donut_factor', FILTER_SANITIZE_S TRING),493 ); 494 495 update_post_meta( $post_id, '_ec_chart_type', filter_input( INPUT_POST, 'ec_chart_type', FILTER_SANITIZE_S TRING) );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 ) ); 496 496 update_post_meta( $post_id, '_ec_chart_meta', $ec_chart_meta ); 497 497 update_post_meta( $post_id, '_ec_chart_graph', $ec_chart_graph ); … … 526 526 check_ajax_referer( 'ec-ajax-nonce', '_nonce_check' ); 527 527 528 if ( 'easy_charts_save_chart_data' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_S TRING) ) {528 if ( 'easy_charts_save_chart_data' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_SPECIAL_CHARS ) ) { 529 529 exit( 0 ); 530 530 } … … 545 545 */ 546 546 public function easy_charts_get_published_charts_callback() { 547 if ( 'easy_charts_get_published_charts' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_S TRING) ) {547 if ( 'easy_charts_get_published_charts' !== filter_input( INPUT_POST, 'action', FILTER_SANITIZE_SPECIAL_CHARS ) ) { 548 548 exit( 0 ); 549 549 } -
easy-charts/trunk/admin/css/easy-charts-admin.css
r1944243 r2908758 25 25 } 26 26 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] { 28 28 width: 100%; 29 29 } … … 44 44 #easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab.pws_show { 45 45 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; 46 49 } 47 50 #easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field { … … 64 67 width: 60%; 65 68 } 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], 68 71 #easy-charts-configuration-metabox-wrap #easy-chart-configuration-box #ec-tabs .ec-tab div.field > table td.ec-td-field select { 69 72 width: 100%; … … 73 76 overflow: auto; 74 77 } 78 79 /*# sourceMappingURL=easy-charts-admin.css.map */ -
easy-charts/trunk/admin/css/easy-charts-admin.scss
r1944243 r2908758 71 71 } 72 72 73 .ec-td-field{ 74 label { 75 padding: 5px; 76 } 77 } 78 73 79 div.field{ 74 80 width: 100%; -
easy-charts/trunk/easy-charts.php
r1944243 r2908758 10 10 * Plugin URI: http://kiranpotphode.github.io/easy-charts/ 11 11 * Description: Build simple, reusable, customisable charts on any page or post with ease. 12 * Version: 1.2. 112 * Version: 1.2.2 13 13 * Author: Kiran Potphode 14 14 * License: GPL-2.0+ -
easy-charts/trunk/includes/class-easy-charts.php
r1944243 r2908758 173 173 174 174 $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' ); 176 176 $this->loader->add_action( 'init', $plugin_public, 'init' ); 177 177 $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 49 49 }); 50 50 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) { 52 52 var svg = $(this).parents('.uv-chart-div svg.uv-frame'); 53 53
Note: See TracChangeset
for help on using the changeset viewer.