Changeset 2690508
- Timestamp:
- 03/08/2022 04:20:27 AM (4 years ago)
- Location:
- analytics-cat/trunk
- Files:
-
- 3 edited
-
fca-ga.php (modified) (4 diffs)
-
includes/editor/editor.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
analytics-cat/trunk/fca-ga.php
r2479486 r2690508 9 9 Author URI: https://fatcatapps.com/ 10 10 License: GPLv2 11 Version: 1. 0.911 Version: 1.1.0 12 12 */ 13 13 … … 21 21 22 22 //DEFINE SOME USEFUL CONSTANTS 23 define( 'FCA_GA_PLUGIN_VER', '1. 0.9' );23 define( 'FCA_GA_PLUGIN_VER', '1.1.0' ); 24 24 define( 'FCA_GA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 25 25 define( 'FCA_GA_PLUGINS_URL', plugins_url( '', __FILE__ ) ); … … 52 52 53 53 $options = get_option( 'fca_ga', true ); 54 $id = empty ( $options['id'] ) ? '' : $options['id'];54 $id = empty ( $options['id'] ) ? '' : esc_attr( $options['id'] ); 55 55 $atts = apply_filters( 'fca_ga_attributes', '' ); 56 56 $exclude = empty ( $options['exclude'] ) ? array() : $options['exclude']; 57 57 $do_script = count( array_intersect( array_map( 'strtolower', $roles), array_map( 'strtolower', $exclude ) ) ) == 0; 58 58 59 if ( !empty( $options['id'] )&& $do_script ) {59 if ( $id && $do_script ) { 60 60 61 61 ob_start(); ?> … … 92 92 function fca_ga_input ( $name, $placeholder = '', $value = '', $type = 'text' ) { 93 93 94 $name = esc_attr( $name ); 95 $placeholder = esc_attr( $placeholder ); 96 $value = esc_attr( $value ); 97 94 98 $html = "<div class='fca-ga-field fca-ga-field-$type'>"; 95 99 -
analytics-cat/trunk/includes/editor/editor.php
r2324099 r2690508 51 51 52 52 if ( isSet( $_POST['fca_ga_save'] ) ) { 53 54 $nonce = sanitize_text_field( $_POST['fca_ga']['nonce'] ); 55 56 if( wp_verify_nonce( $nonce, 'fca_ga_admin_nonce' ) === false ){ 57 wp_die( 'Unauthorized, please log in and try again.' ); 58 } 59 53 60 fca_ga_settings_save(); 54 61 fca_ga_admin_notice_save(); … … 61 68 62 69 $html = '<form style="display: none" action="" method="post" id="fca_ga_main_form">'; 70 71 $html .= wp_nonce_field( 'fca_ga_admin_nonce', 'fca_ga[nonce]' ); 63 72 64 73 $html .= '<h1>' . __('Google Analytics by Fatcat Apps', 'fca-ga') . '</h1>'; -
analytics-cat/trunk/readme.txt
r2664130 r2690508 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Stable tag: 1. 0.911 Stable tag: 1.1.0 12 12 13 13 Analytics Cat - Google Analytics Lets You Add Your Google Analytics / Universal Analytics Tracking Code To Your Site With Ease. … … 123 123 == Changelog == 124 124 125 = Analytics Cat - Google Analytics 1.1.0 = 126 * Improved security for Editor page 127 * Tested up to WordPress 5.9.1 128 125 129 = Analytics Cat - Google Analytics 1.0.9 = 126 130 * Updated feedback form
Note: See TracChangeset
for help on using the changeset viewer.