Changeset 2683767
- Timestamp:
- 02/23/2022 01:39:17 PM (2 years ago)
- Location:
- trust-txt
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trust-txt/tags/1.1/inc/admin.php
r2356226 r2683767 192 192 */ 193 193 function settings_screen( $post_id, $strings, $args ) { 194 194 195 $post = false; 195 196 $content = false; … … 294 295 <div id="trusttxt-notification-area"></div> 295 296 297 298 299 300 296 301 <p class="submit"> 297 302 <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr( 'Save Changes' ); ?>"> … … 339 344 <# } #> 340 345 </script> 346 347 348 341 349 </div> 342 350 -
trust-txt/tags/1.1/inc/save.php
r2356226 r2683767 52 52 ), 53 53 ); 54 55 54 56 55 57 if ( ! $doing_ajax || empty( $errors ) || 'y' === $ays ) { -
trust-txt/tags/1.1/readme.txt
r2498566 r2683767 5 5 Tags: Trust.txt 6 6 Requires at least: 4.9 7 Tested up to: 5. 77 Tested up to: 5. 8 8 Requires PHP: 5.3 9 Stable tag: 1. 09 Stable tag: 1. 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 58 59 57 60 = 1.0 = 58 61 * Initial plugin release 62 63 64 65 66 67 59 68 60 69 == Credits == -
trust-txt/tags/1.1/trust-txt.php
r2356226 r2683767 3 3 * Plugin Name: Trust.txt Manager 4 4 * Description: Create, manage, and validate your Trust.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+. 5 * Version: 1. 05 * Version: 1. 6 6 * Author: rtCamp 7 7 * Author URI: https://rtcamp.com … … 16 16 } 17 17 18 define( 'TRUST_TXT_MANAGER_VERSION', '1. 0' );18 define( 'TRUST_TXT_MANAGER_VERSION', '1.' ); 19 19 define( 'TRUST_TXT_MANAGE_CAPABILITY', 'edit_trust_txt' ); 20 20 define( 'TRUST_TXT_MANAGER_POST_OPTION', 'trusttxt_post' ); … … 30 30 */ 31 31 function rtcamp_display_trust_txt() { 32 $request = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : false; 33 if ( '/trust.txt' === $request ) { 32 $request = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : false; 33 $trust_well_known_path = get_option( 'trust_custom_path' ); 34 35 $path_to_check = '/trust.txt'; 36 if ( $trust_well_known_path ) { 37 $path_to_check = '/.well-known/trust.txt'; 38 } 39 40 if ( $path_to_check === $request ) { 34 41 $post_id = get_option( TRUST_TXT_MANAGER_POST_OPTION ); 35 42 -
trust-txt/trunk/inc/admin.php
r2356226 r2683767 192 192 */ 193 193 function settings_screen( $post_id, $strings, $args ) { 194 194 195 $post = false; 195 196 $content = false; … … 294 295 <div id="trusttxt-notification-area"></div> 295 296 297 298 299 300 296 301 <p class="submit"> 297 302 <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr( 'Save Changes' ); ?>"> … … 339 344 <# } #> 340 345 </script> 346 347 348 341 349 </div> 342 350 -
trust-txt/trunk/inc/save.php
r2356226 r2683767 52 52 ), 53 53 ); 54 55 54 56 55 57 if ( ! $doing_ajax || empty( $errors ) || 'y' === $ays ) { -
trust-txt/trunk/readme.txt
r2498566 r2683767 5 5 Tags: Trust.txt 6 6 Requires at least: 4.9 7 Tested up to: 5. 77 Tested up to: 5. 8 8 Requires PHP: 5.3 9 Stable tag: 1. 09 Stable tag: 1. 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 58 59 57 60 = 1.0 = 58 61 * Initial plugin release 62 63 64 65 66 67 59 68 60 69 == Credits == -
trust-txt/trunk/trust-txt.php
r2356226 r2683767 3 3 * Plugin Name: Trust.txt Manager 4 4 * Description: Create, manage, and validate your Trust.txt from within WordPress, just like any other content asset. Requires PHP 5.3+ and WordPress 4.9+. 5 * Version: 1. 05 * Version: 1. 6 6 * Author: rtCamp 7 7 * Author URI: https://rtcamp.com … … 16 16 } 17 17 18 define( 'TRUST_TXT_MANAGER_VERSION', '1. 0' );18 define( 'TRUST_TXT_MANAGER_VERSION', '1.' ); 19 19 define( 'TRUST_TXT_MANAGE_CAPABILITY', 'edit_trust_txt' ); 20 20 define( 'TRUST_TXT_MANAGER_POST_OPTION', 'trusttxt_post' ); … … 30 30 */ 31 31 function rtcamp_display_trust_txt() { 32 $request = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : false; 33 if ( '/trust.txt' === $request ) { 32 $request = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : false; 33 $trust_well_known_path = get_option( 'trust_custom_path' ); 34 35 $path_to_check = '/trust.txt'; 36 if ( $trust_well_known_path ) { 37 $path_to_check = '/.well-known/trust.txt'; 38 } 39 40 if ( $path_to_check === $request ) { 34 41 $post_id = get_option( TRUST_TXT_MANAGER_POST_OPTION ); 35 42
Note: See TracChangeset
for help on using the changeset viewer.