Plugin Directory

Changeset 2683767

Timestamp:
02/23/2022 01:39:17 PM (2 years ago)
Author:
rtcamp
Message:

Update to version 1.1 from GitHub

Location:
trust-txt
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trust-txt/tags/1.1/inc/admin.php

    r2356226 r2683767  
    192192 */
    193193function settings_screen( $post_id, $strings, $args ) {
     194
    194195    $post             = false;
    195196    $content          = false;
     
    294295        <div id="trusttxt-notification-area"></div>
    295296
     297
     298
     299
     300
    296301        <p class="submit">
    297302            <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr( 'Save Changes' ); ?>">
     
    339344        <# } #>
    340345    </script>
     346
     347
     348
    341349</div>
    342350
  • trust-txt/tags/1.1/inc/save.php

    r2356226 r2683767  
    5252        ),
    5353    );
     54
     55
    5456
    5557    if ( ! $doing_ajax || empty( $errors ) || 'y' === $ays ) {
  • trust-txt/tags/1.1/readme.txt

    r2498566 r2683767  
    55Tags: Trust.txt
    66Requires at least: 4.9
    7 Tested up to: 5.7
     7Tested up to: 5.
    88Requires PHP: 5.3
    9 Stable tag: 1.0
     9Stable tag: 1.
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57
     58
     59
    5760= 1.0 =
    5861* Initial plugin release
     62
     63
     64
     65
     66
     67
    5968
    6069== Credits ==
  • trust-txt/tags/1.1/trust-txt.php

    r2356226 r2683767  
    33 * Plugin Name: Trust.txt Manager
    44 * 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.0
     5 * Version:     1.
    66 * Author:      rtCamp
    77 * Author URI:  https://rtcamp.com
     
    1616}
    1717
    18 define( 'TRUST_TXT_MANAGER_VERSION', '1.0' );
     18define( 'TRUST_TXT_MANAGER_VERSION', '1.' );
    1919define( 'TRUST_TXT_MANAGE_CAPABILITY', 'edit_trust_txt' );
    2020define( 'TRUST_TXT_MANAGER_POST_OPTION', 'trusttxt_post' );
     
    3030 */
    3131function 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 ) {
    3441        $post_id = get_option( TRUST_TXT_MANAGER_POST_OPTION );
    3542
  • trust-txt/trunk/inc/admin.php

    r2356226 r2683767  
    192192 */
    193193function settings_screen( $post_id, $strings, $args ) {
     194
    194195    $post             = false;
    195196    $content          = false;
     
    294295        <div id="trusttxt-notification-area"></div>
    295296
     297
     298
     299
     300
    296301        <p class="submit">
    297302            <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr( 'Save Changes' ); ?>">
     
    339344        <# } #>
    340345    </script>
     346
     347
     348
    341349</div>
    342350
  • trust-txt/trunk/inc/save.php

    r2356226 r2683767  
    5252        ),
    5353    );
     54
     55
    5456
    5557    if ( ! $doing_ajax || empty( $errors ) || 'y' === $ays ) {
  • trust-txt/trunk/readme.txt

    r2498566 r2683767  
    55Tags: Trust.txt
    66Requires at least: 4.9
    7 Tested up to: 5.7
     7Tested up to: 5.
    88Requires PHP: 5.3
    9 Stable tag: 1.0
     9Stable tag: 1.
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57
     58
     59
    5760= 1.0 =
    5861* Initial plugin release
     62
     63
     64
     65
     66
     67
    5968
    6069== Credits ==
  • trust-txt/trunk/trust-txt.php

    r2356226 r2683767  
    33 * Plugin Name: Trust.txt Manager
    44 * 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.0
     5 * Version:     1.
    66 * Author:      rtCamp
    77 * Author URI:  https://rtcamp.com
     
    1616}
    1717
    18 define( 'TRUST_TXT_MANAGER_VERSION', '1.0' );
     18define( 'TRUST_TXT_MANAGER_VERSION', '1.' );
    1919define( 'TRUST_TXT_MANAGE_CAPABILITY', 'edit_trust_txt' );
    2020define( 'TRUST_TXT_MANAGER_POST_OPTION', 'trusttxt_post' );
     
    3030 */
    3131function 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 ) {
    3441        $post_id = get_option( TRUST_TXT_MANAGER_POST_OPTION );
    3542
Note: See TracChangeset for help on using the changeset viewer.