Changeset 8461
- Timestamp:
- 05/31/2014 04:20:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template-loader.php
r7842 r8461 125 125 * @todo Make 'callable' instead of 'function'. 126 126 * 127 * @param string $location Callback function that returns the stack location.127 * @param string $location_callback Callback function that returns the stack location. 128 128 * @param int $priority Optional. The priority parameter as passed to 129 129 * add_filter(). Default: 10. … … 133 133 134 134 // Bail if no location, or function does not exist 135 if ( empty( $location_callback ) || ! function_exists( $location_callback ) )135 if ( empty( $location_callback ) ) { 136 136 return false; 137 } 138 139 // Bail if callback function does not exist 140 if ( ! is_array( $location_callback ) ) { 141 if ( ! function_exists( $location_callback ) ) { 142 return false; 143 } 144 } 137 145 138 146 // Add location callback to template stack … … 147 155 * @see bp_register_template_stack() 148 156 * 149 * @param string $location Callback function that returns the stack location.157 * @param string $location_callback Callback function that returns the stack location. 150 158 * @param int $priority Optional. The priority parameter passed to 151 159 * {@link bp_register_template_stack()}. Default: 10.
Note: See TracChangeset
for help on using the changeset viewer.