Ticket #7611: 7611-wp-version.patch
File 7611-wp-version.patch, 9.3 KB (added by , 7 years ago) |
---|
-
src/bp-groups/bp-groups-admin.php
580 580 do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); ?> 581 581 582 582 <div class="wrap"> 583 < h1><?php _e( 'Edit Group', 'buddypress' );?>583 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 584 584 585 <h1 class="wp-heading-inline"><?php _e( 'Edit Group', 'buddypress' ); ?></h1> 586 585 587 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 586 <a class=" add-new-h2" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a>588 <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> 587 589 <?php endif; ?> 588 590 589 </h1>591 <hr class="wp-header-end"> 590 592 593 <?php else : ?> 594 595 <h1><?php _e( 'Edit Group', 'buddypress' ); ?> 596 597 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 598 <a class="add-new-h2" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> 599 <?php endif; ?> 600 601 </h1> 602 603 <?php endif; ?> 604 591 605 <?php // If the user has just made a change to an group, display the status messages. ?> 592 606 <?php if ( !empty( $messages ) ) : ?> 593 607 <div id="moderated" class="<?php echo ( $is_error ) ? 'error' : 'updated'; ?>"><p><?php echo implode( "</p><p>", $messages ); ?></p></div> … … 752 766 do_action( 'bp_groups_admin_index', $messages ); ?> 753 767 754 768 <div class="wrap"> 769 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 770 771 <h1 class="wp-heading-inline"><?php _e( 'Groups', 'buddypress' ); ?></h1> 772 773 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 774 <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> 775 <?php endif; ?> 776 777 <?php if ( !empty( $_REQUEST['s'] ) ) : ?> 778 <span class="subtitle"><?php printf( __( 'Search results for “%s”', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span> 779 <?php endif; ?> 780 781 <hr class="wp-header-end"> 782 783 <?php else : ?> 784 755 785 <h1> 756 786 <?php _e( 'Groups', 'buddypress' ); ?> 757 787 … … 764 794 <?php endif; ?> 765 795 </h1> 766 796 797 <?php endif; ?> 798 767 799 <?php // If the user has just made a change to an group, display the status messages. ?> 768 800 <?php if ( !empty( $messages ) ) : ?> 769 801 <div id="moderated" class="<?php echo ( ! empty( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?>"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div> -
src/bp-members/classes/class-bp-members-admin.php
942 942 <?php endif; ?> 943 943 944 944 <div class="wrap" id="community-profile-page"> 945 < h1><?php echo esc_html( $title );?>945 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 946 946 947 <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> 948 947 949 <?php if ( empty( $this->is_self_profile ) ) : ?> 948 950 949 951 <?php if ( current_user_can( 'create_users' ) ) : ?> 950 952 951 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a>953 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 952 954 953 955 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 954 956 955 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a>957 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 956 958 957 959 <?php endif; ?> 958 960 959 961 <?php endif; ?> 960 </h1>961 962 963 <hr class="wp-header-end"> 964 965 <?php else : ?> 966 967 <h1><?php echo esc_html( $title ); ?> 968 969 <?php if ( empty( $this->is_self_profile ) ) : ?> 970 971 <?php if ( current_user_can( 'create_users' ) ) : ?> 972 973 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 974 975 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 976 977 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 978 979 <?php endif; ?> 980 981 <?php endif; ?> 982 </h1> 983 984 <?php endif; ?> 985 962 986 <?php if ( ! empty( $user ) ) : 963 987 964 988 $this->profile_nav( $user, 'BuddyPress' ); ?> … … 1918 1942 ?> 1919 1943 1920 1944 <div class="wrap"> 1921 < h1><?php _e( 'Users', 'buddypress' );?>1945 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 1922 1946 1947 <h1 class="wp-heading-inline"><?php _e( 'Users', 'buddypress' ); ?></h1> 1948 1923 1949 <?php if ( current_user_can( 'create_users' ) ) : ?> 1924 1950 1925 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a>1951 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 1926 1952 1927 1953 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 1928 1954 1929 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a>1955 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 1930 1956 1931 1957 <?php endif; 1932 1958 … … 1933 1959 if ( $usersearch ) { 1934 1960 printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); 1935 1961 } 1936 1937 1962 ?> 1938 </h1>1939 1963 1964 <hr class="wp-header-end"> 1965 1966 <?php else : ?> 1967 1968 <h1><?php _e( 'Users', 'buddypress' ); ?> 1969 1970 <?php if ( current_user_can( 'create_users' ) ) : ?> 1971 1972 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 1973 1974 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 1975 1976 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 1977 1978 <?php endif; 1979 1980 if ( $usersearch ) { 1981 printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); 1982 } 1983 1984 ?> 1985 </h1> 1986 1987 <?php endif; ?> 1988 1940 1989 <?php // Display each signups on its own row. ?> 1941 1990 <?php $bp_members_signup_list_table->views(); ?> 1942 1991 -
src/bp-templates/bp-nouveau/includes/messages/classes.php
170 170 $this->list_table->prepare_items(); 171 171 ?> 172 172 <div class="wrap"> 173 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 173 174 174 <h1> 175 <?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?> 176 <a id="add_notice" class="add-new-h2" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a> 177 </h1> 175 <h1 class="wp-heading-inline"><?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?></h1> 178 176 177 <a id="add_notice" class="page-title-action" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a> 178 179 <hr class="wp-header-end"> 180 181 <?php else : ?> 182 183 <h1> 184 <?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?> 185 <a id="add_notice" class="add-new-h2" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a> 186 </h1> 187 188 <?php endif; ?> 189 179 190 <form action=<?php echo esc_url( $this->url ); ?> method="post"> 180 191 <table class="widefat"> 181 192 <tr> -
src/bp-xprofile/bp-xprofile-admin.php
133 133 ) ); ?> 134 134 135 135 <div class="wrap"> 136 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 136 137 137 <h1> 138 <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?> 139 <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 140 </h1> 138 <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1> 141 139 140 <a id="add_group" class="page-title-action" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 141 142 <hr class="wp-header-end"> 143 144 <?php else : ?> 145 146 <h1> 147 <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?> 148 <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 149 </h1> 150 151 <?php endif; ?> 152 142 153 <form action="" id="profile-field-form" method="post"> 143 154 144 155 <?php