Guest User

Untitled

a guest
Feb 25th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. private function prepare_links() {
  2. if ( ! is_array( $this->crumbs ) || $this->crumbs === array() ) {
  3. return;
  4. }
  5.  
  6. foreach ( $this->crumbs as $i => $crumb ) {
  7. // Keep pre-set url/text combis.
  8. $link_info = $crumb;
  9.  
  10. if ( isset( $crumb['id'] ) ) {
  11. $link_info = $this->get_link_info_for_id( $crumb['id'] );
  12. }
  13. if ( isset( $crumb['term'] ) ) {
  14. $link_info = $this->get_link_info_for_term( $crumb['term'] );
  15. }
  16. // Эта часть кода выводит не нужную мне ссылку
  17. if ( isset( $crumb['ptarchive'] ) ) {
  18. $link_info = $this->get_link_info_for_ptarchive( $crumb['ptarchive'] );
  19. }
  20. // конец
  21. $this->links[] = $this->crumb_to_link( $link_info, $i );
  22. }
  23. }
Add Comment
Please, Sign In to add comment