@@ -1167,12 +1167,12 @@ |
||
| 1167 | 1167 | */ |
| 1168 | 1168 | function give_slug_to_title( $string, $filters = array() ){ |
| 1169 | 1169 | |
| 1170 | - foreach( $filters as $filter_item ){ |
|
| 1171 | - $string = str_replace( $filter_item, ' ', $string ); |
|
| 1172 | - } |
|
| 1170 | + foreach( $filters as $filter_item ){ |
|
| 1171 | + $string = str_replace( $filter_item, ' ', $string ); |
|
| 1172 | + } |
|
| 1173 | 1173 | |
| 1174 | - // Return updated string after converting it to title case |
|
| 1175 | - return ucwords( $string ); |
|
| 1174 | + // Return updated string after converting it to title case |
|
| 1175 | + return ucwords( $string ); |
|
| 1176 | 1176 | |
| 1177 | 1177 | } |
| 1178 | 1178 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | give_v187_upgrades(); |
| 51 | 51 | $did_upgrade = true; |
| 52 | 52 | |
| 53 | - case version_compare( $give_version, '1.8.8', '<' ) : |
|
| 53 | + case version_compare( $give_version, '1.8.8', '<' ) : |
|
| 54 | 54 | give_v188_upgrades(); |
| 55 | 55 | $did_upgrade = true; |
| 56 | 56 | |
@@ -909,19 +909,19 @@ discard block |
||
| 909 | 909 | |
| 910 | 910 | global $wp_roles; |
| 911 | 911 | |
| 912 | - // Get the role object. |
|
| 913 | - $give_worker = get_role( 'give_worker' ); |
|
| 912 | + // Get the role object. |
|
| 913 | + $give_worker = get_role( 'give_worker' ); |
|
| 914 | 914 | |
| 915 | 915 | // A list of capabilities to add for give workers. |
| 916 | - $caps_to_add = array( |
|
| 917 | - 'edit_posts', |
|
| 918 | - 'edit_pages' |
|
| 919 | - ); |
|
| 920 | - |
|
| 921 | - foreach ( $caps_to_add as $cap ) { |
|
| 922 | - // Add the capability. |
|
| 923 | - $give_worker->add_cap( $cap ); |
|
| 924 | - } |
|
| 916 | + $caps_to_add = array( |
|
| 917 | + 'edit_posts', |
|
| 918 | + 'edit_pages' |
|
| 919 | + ); |
|
| 920 | + |
|
| 921 | + foreach ( $caps_to_add as $cap ) { |
|
| 922 | + // Add the capability. |
|
| 923 | + $give_worker->add_cap( $cap ); |
|
| 924 | + } |
|
| 925 | 925 | |
| 926 | 926 | } |
| 927 | 927 | |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | 'disabled' => __( 'Disabled', 'give' ), |
| 88 | 88 | ) |
| 89 | 89 | ), |
| 90 | - array( |
|
| 91 | - 'name' => __( 'Display Settings Docs Link', 'give' ), |
|
| 92 | - 'id' => 'display_settings_docs_link', |
|
| 93 | - 'url' => esc_url( 'http://docs.givewp.com/form-display-options' ), |
|
| 94 | - 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | - 'type' => 'give_docs_link', |
|
| 96 | - ), |
|
| 90 | + array( |
|
| 91 | + 'name' => __( 'Display Settings Docs Link', 'give' ), |
|
| 92 | + 'id' => 'display_settings_docs_link', |
|
| 93 | + 'url' => esc_url( 'http://docs.givewp.com/form-display-options' ), |
|
| 94 | + 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | + 'type' => 'give_docs_link', |
|
| 96 | + ), |
|
| 97 | 97 | array( |
| 98 | 98 | 'id' => 'give_title_display_settings_1', |
| 99 | 99 | 'type' => 'sectionend' |
@@ -170,13 +170,13 @@ discard block |
||
| 170 | 170 | 'disabled' => __( 'Disabled', 'give' ), |
| 171 | 171 | ) |
| 172 | 172 | ), |
| 173 | - array( |
|
| 174 | - 'name' => __( 'Post Types Docs Link', 'give' ), |
|
| 175 | - 'id' => 'post_types_settings_docs_link', |
|
| 176 | - 'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ), |
|
| 177 | - 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | - 'type' => 'give_docs_link', |
|
| 179 | - ), |
|
| 173 | + array( |
|
| 174 | + 'name' => __( 'Post Types Docs Link', 'give' ), |
|
| 175 | + 'id' => 'post_types_settings_docs_link', |
|
| 176 | + 'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ), |
|
| 177 | + 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | + 'type' => 'give_docs_link', |
|
| 179 | + ), |
|
| 180 | 180 | array( |
| 181 | 181 | 'id' => 'give_title_display_settings_2', |
| 182 | 182 | 'type' => 'sectionend' |
@@ -212,13 +212,13 @@ discard block |
||
| 212 | 212 | 'disabled' => __( 'Disabled', 'give' ), |
| 213 | 213 | ) |
| 214 | 214 | ), |
| 215 | - array( |
|
| 216 | - 'name' => __( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | - 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | - 'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ), |
|
| 219 | - 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | - 'type' => 'give_docs_link', |
|
| 221 | - ), |
|
| 215 | + array( |
|
| 216 | + 'name' => __( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | + 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | + 'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ), |
|
| 219 | + 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | + 'type' => 'give_docs_link', |
|
| 221 | + ), |
|
| 222 | 222 | array( |
| 223 | 223 | 'id' => 'give_title_display_settings_3', |
| 224 | 224 | 'type' => 'sectionend' |
@@ -258,13 +258,13 @@ discard block |
||
| 258 | 258 | 'id' => 'agreement_text', |
| 259 | 259 | 'type' => 'wysiwyg' |
| 260 | 260 | ), |
| 261 | - array( |
|
| 262 | - 'name' => __( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | - 'id' => 'terms_settings_docs_link', |
|
| 264 | - 'url' => esc_url( 'http://docs.givewp.com/settings-terms' ), |
|
| 265 | - 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | - 'type' => 'give_docs_link', |
|
| 267 | - ), |
|
| 261 | + array( |
|
| 262 | + 'name' => __( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | + 'id' => 'terms_settings_docs_link', |
|
| 264 | + 'url' => esc_url( 'http://docs.givewp.com/settings-terms' ), |
|
| 265 | + 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | + 'type' => 'give_docs_link', |
|
| 267 | + ), |
|
| 268 | 268 | array( |
| 269 | 269 | 'id' => 'give_title_display_settings_4', |
| 270 | 270 | 'type' => 'sectionend' |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | add_role( 'give_worker', esc_html__( 'Give Worker', 'give' ), array( |
| 90 | 90 | 'read' => true, |
| 91 | 91 | 'edit_posts' => true, |
| 92 | - 'edit_pages' => true, |
|
| 92 | + 'edit_pages' => true, |
|
| 93 | 93 | 'upload_files' => true, |
| 94 | 94 | 'delete_posts' => false |
| 95 | 95 | ) ); |