Advertisement
fruffl

WP action Log

Mar 10th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 12.39 KB | None | 0 0
  1. tri4m\Wp\Theme\Trace
  2.     tri4m\Wp\Theme\Application::boot: en_US
  3.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([after_switch_theme][Closure::function()
  4.                     {
  5.                         try
  6.                         {
  7.                             static::$__Application->activate();
  8.                             Invoke::emitStatic('tri4m\Wp\Theme\Wp', 'flushRewriteRules');
  9.                         }
  10.                         catch(\Exception $E)
  11.                         {
  12.                             Theme::e('Run Exec Error', $E);
  13.                         }
  14.                     }][1])].
  15.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([switch_theme][Closure::function()
  16.                     {
  17.                         try
  18.                         {
  19.                             static::$__Application->deactivate();
  20.                             Invoke::emitStatic('tri4m\Wp\Theme\Wp', 'flushRewriteRules');
  21.                         }
  22.                         catch(\Exception $E)
  23.                         {
  24.                             Theme::e('Run Exec Error', $E);
  25.                         }
  26.                     }][1])].
  27.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([after_setup_theme][Closure::function()
  28.                     {
  29.                         try
  30.                         {
  31.                             static::$__Application->run();
  32.                         }
  33.                         catch(\Exception $E)
  34.                         {
  35.                             Theme::e('Run Exec Error', $E);
  36.                         }
  37.                        
  38.                         try
  39.                         {
  40.                             static::$__Hook->dequeueFilters();
  41.                             static::$__Hook->dequeueActions();
  42.                             static::$__Hook->dequeueCallables();
  43.                         }
  44.                         catch(\Exception $E)
  45.                         {
  46.                             Theme::e('Hook Dequeue Error', $E);
  47.                         }
  48.                        
  49.                         try
  50.                         {
  51.                             Wp::addAction(Hook::ACTION_SHUTDOWN, function()
  52.                             {
  53.                                 if(FALSE === static::$__debug)
  54.                                     return;
  55.                                        
  56.                                 print static::showTrace();
  57.                             });
  58.                         }
  59.                         catch(\Exception $E)
  60.                         {
  61.                             Theme::e('Registration Hook::ACTION_SHUTDOWN Error', $E);
  62.                         }
  63.                     }][2])].
  64.     tri4m\Wp\Theme\Application::run: en_US
  65.             Register Callable load_theme_textdomain
  66.             Register Callable add_theme_support
  67.             Register Callable add_theme_support
  68.             Register Callable add_theme_support
  69.             Register Callable add_editor_style
  70.             Register Callable set_post_thumbnail_size
  71.             Register Action page[init]
  72.             Register Action page[widgets_init]
  73.             Register Action page[init]
  74.             Register Action page[wp_head]
  75.         tri4m\Wp\Theme\Hook::dequeueFilters
  76.         tri4m\Wp\Theme\Hook::dequeueActions
  77.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([init][Closure::function() use ($__target, $__name, &$__action)
  78.                 {
  79.                     if(TRUE === Theme::isDebug())
  80.                         Trace::add("\t\t".String::insert('Exec Action {:__target}[{:__name}]: {:analyze}', compact('__target', '__name') + ['analyze' => Trace::analyze($__action)]));
  81.                    
  82.                     try
  83.                     {
  84.                         $__action();
  85.                     }
  86.                     catch(\Exception $E)
  87.                     {
  88.                         Theme::e('Error in emit Action {:attributes}',
  89.                             ['attributes' => String::attribute(compact('__target', '__name'))], $E);
  90.                     }
  91.                 }][10])].
  92.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([init][Closure::function() use ($__target, $__name, &$__action)
  93.                 {
  94.                     if(TRUE === Theme::isDebug())
  95.                         Trace::add("\t\t".String::insert('Exec Action {:__target}[{:__name}]: {:analyze}', compact('__target', '__name') + ['analyze' => Trace::analyze($__action)]));
  96.                    
  97.                     try
  98.                     {
  99.                         $__action();
  100.                     }
  101.                     catch(\Exception $E)
  102.                     {
  103.                         Theme::e('Error in emit Action {:attributes}',
  104.                             ['attributes' => String::attribute(compact('__target', '__name'))], $E);
  105.                     }
  106.                 }][10])].
  107.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([widgets_init][Closure::function() use ($__target, $__name, &$__action)
  108.                 {
  109.                     if(TRUE === Theme::isDebug())
  110.                         Trace::add("\t\t".String::insert('Exec Action {:__target}[{:__name}]: {:analyze}', compact('__target', '__name') + ['analyze' => Trace::analyze($__action)]));
  111.                    
  112.                     try
  113.                     {
  114.                         $__action();
  115.                     }
  116.                     catch(\Exception $E)
  117.                     {
  118.                         Theme::e('Error in emit Action {:attributes}',
  119.                             ['attributes' => String::attribute(compact('__target', '__name'))], $E);
  120.                     }
  121.                 }][10])].
  122.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([wp_head][Closure::function() use ($__target, $__name, &$__action)
  123.                 {
  124.                     if(TRUE === Theme::isDebug())
  125.                         Trace::add("\t\t".String::insert('Exec Action {:__target}[{:__name}]: {:analyze}', compact('__target', '__name') + ['analyze' => Trace::analyze($__action)]));
  126.                    
  127.                     try
  128.                     {
  129.                         $__action();
  130.                     }
  131.                     catch(\Exception $E)
  132.                     {
  133.                         Theme::e('Error in emit Action {:attributes}',
  134.                             ['attributes' => String::attribute(compact('__target', '__name'))], $E);
  135.                     }
  136.                 }][10])].
  137.         tri4m\Wp\Theme\Hook::dequeueCallables
  138.             Exec Function load_theme_textdomain: [response][/var/www/clients/client5/web56/web/blog/wp-content/themes/tri4m/core/lib/ietf]
  139.             Exec Function add_theme_support: [automatic-feed-links]
  140.             Exec Function add_theme_support: [post-formats][10 => aside, 1 => gallery, 2 => link, 3 => image, 4 => quote, 5 => status, 6 => video, 7 => audio, 8 => chat]
  141.             Exec Function add_theme_support: [post-thumbnails]
  142.             Exec Function add_editor_style: []
  143.             Exec Function set_post_thumbnail_size: [720][240][1]
  144.             Trigger tri4m\Wp\Theme\Wp::addAction [add_action([shutdown][Closure::function()
  145.                             {
  146.                                 if(FALSE === static::$__debug)
  147.                                     return;
  148.                                        
  149.                                 print static::showTrace();
  150.                             }])].
  151.             Exec Action page[widgets_init]: Closure::function()
  152.             {
  153.                 try
  154.                 {
  155.                     Wp::registerSidebar([
  156.                         'name'          => 'Full Sidebar',
  157.                         'id'            => 'sidebar-widgets',
  158.                         'description'       => 'These are widgets for the sidebar.',
  159.                         'before_widget'     => '<div id="%1$s" class="widget-container %2$s">',
  160.                         'after_widget'      => '</div>',
  161.                         'before_title'      => '<h2 class="widget-title">',
  162.                         'after_title'       => '</h2>'
  163.                     ]);
  164.                    
  165.                     Wp::registerSidebar([
  166.                         'name'          => 'Left Half Sidebar',
  167.                         'id'            => 'sidebar-left',
  168.                         'description'       => 'These are widgets for the left sidebar.',
  169.                         'before_widget'     => '<div id="%1$s" class="widget-container %2$s">',
  170.                         'after_widget'      => '</div>',
  171.                         'before_title'      => '<h2 class="widget-title">',
  172.                         'after_title'       => '</h2>'
  173.                     ]);
  174.                    
  175.                     Wp::registerSidebar([
  176.                         'name'          => 'Right Half Sidebar',
  177.                         'id'            => 'sidebar-right',
  178.                         'description'       => 'These are widgets for the right sidebar.',
  179.                         'before_widget'     => '<div id="%1$s" class="widget-container %2$s">',
  180.                         'after_widget'      => '</div>',
  181.                         'before_title'      => '<h2 class="widget-title">',
  182.                         'after_title'       => '</h2>'
  183.                     ]);
  184.                    
  185.                     Wp::registerSidebar([
  186.                         'name'          => 'Footer',
  187.                         'id'            => 'footer-widgets',
  188.                         'description'       => 'These are the footer widgets',
  189.                         'before_widget'     => '<div class="three columns footer-widgets %2$s">',
  190.                         'after_widget'      => '</div>',
  191.                         'before_title'      => '<h3 class="footer-widget-title">',
  192.                         'after_title'       => '</h3>',
  193.                     ]);
  194.                 }
  195.                 catch(\Exception $E)
  196.                 {
  197.                     Theme::e('Error in HOOK::ACTION_WIDGETS_INIT', $E);
  198.                 }
  199.             }
  200.             Trigger tri4m\Wp\Theme\Wp::registerSidebar [register_sidebar([
  201.                 name => Full Sidebar
  202.                 id => sidebar-widgets
  203.                 description => These are widgets for the sidebar.
  204.                 before_widget => &lt;div id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;
  205.                 after_widget => &lt;/div&gt;
  206.                 before_title => &lt;h2 class=&quot;widget-title&quot;&gt;
  207.                 after_title => &lt;/h2&gt;])].
  208.             Trigger tri4m\Wp\Theme\Wp::registerSidebar [register_sidebar([
  209.                 name => Left Half Sidebar
  210.                 id => sidebar-left
  211.                 description => These are widgets for the left sidebar.
  212.                 before_widget => &lt;div id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;
  213.                 after_widget => &lt;/div&gt;
  214.                 before_title => &lt;h2 class=&quot;widget-title&quot;&gt;
  215.                 after_title => &lt;/h2&gt;])].
  216.             Trigger tri4m\Wp\Theme\Wp::registerSidebar [register_sidebar([
  217.                 name => Right Half Sidebar
  218.                 id => sidebar-right
  219.                 description => These are widgets for the right sidebar.
  220.                 before_widget => &lt;div id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;
  221.                 after_widget => &lt;/div&gt;
  222.                 before_title => &lt;h2 class=&quot;widget-title&quot;&gt;
  223.                 after_title => &lt;/h2&gt;])].
  224.             Trigger tri4m\Wp\Theme\Wp::registerSidebar [register_sidebar([
  225.                 name => Footer
  226.                 id => footer-widgets
  227.                 description => These are the footer widgets
  228.                 before_widget => &lt;div class=&quot;three columns footer-widgets %2$s&quot;&gt;
  229.                 after_widget => &lt;/div&gt;
  230.                 before_title => &lt;h3 class=&quot;footer-widget-title&quot;&gt;
  231.                 after_title => &lt;/h3&gt;])].
  232.             Exec Action page[init]: Closure::function()
  233.             {
  234.                 Invoke::emitStatic('tri4m\Wp\Theme\Wp', 'registerPostType', (new CustomPost('Member',
  235.                 [
  236.                     'supports' =>   CustomPost::SUPPORT_TITLE
  237.                         |   CustomPost::SUPPORT_AUTHOR
  238.                         |   CustomPost::SUPPORT_EDITOR
  239.                         |   CustomPost::SUPPORT_THUMBNAIL
  240.                         |   CustomPost::SUPPORT_EXCERPT
  241.                         |   CustomPost::SUPPORT_TRACKBACKS
  242.                         |   CustomPost::SUPPORT_CUSTOM_FIELDS
  243.                         |   CustomPost::SUPPORT_COMMENTS
  244.                         |   CustomPost::SUPPORT_PAGE_ATTRIBUTES
  245.                         //| CustomPost::SUPPORT_POST_FORMATS
  246.                 ]))->tuple());
  247.             }
  248.     tri4m\Wp\Theme\Item\CustomPost
  249.                 *__postType.singular => Member
  250.                 *__postType.slug_singular => member
  251.                 *__postType.plural => Members
  252.                 *__postType.slug_singluar => member
  253.                 *__postType.slug_plural => members
  254.                 *__config.supports.0 => title
  255.                 *__config.supports.1 => editor
  256.                 *__config.supports.2 => author
  257.                 *__config.supports.3 => thumbnail
  258.                 *__config.supports.4 => excerpt
  259.                 *__config.supports.5 => trackbacks
  260.                 *__config.supports.6 => custom-fields
  261.                 *__config.supports.7 => comments
  262.                 *__config.supports.8 => page-attributes
  263.                 *__config.labels.name => Members
  264.                 *__config.labels.singluar_name => Member
  265.                 *__config.labels.menu_name => My Members
  266.                 *__config.labels.all_items => All Members
  267.                 *__config.labels.add_new => Add New
  268.                 *__config.labels.add_new_item => Add New Member
  269.                 *__config.labels.edit_item => Edit Member
  270.                 *__config.labels.new_item => New Member
  271.                 *__config.labels.view_item => View Member
  272.                 *__config.labels.search_items => Search Members
  273.                 *__config.labels.not_found => No Members found.
  274.                 *__config.labels.not_found_in_trash => No Members found in trash.
  275.                 *__config.labels.parent_item_colon => Parent Member
  276.                 *__config.description => Holds our Members and Member specific data
  277.                 *__config.public => FALSE
  278.                 *__config.exclude_from_search => FALSE
  279.                 *__config.publicly_queryable => TRUE
  280.                 *__config.show_ui => TRUE
  281.                 *__config.show_in_nav_menus => TRUE
  282.                 *__config.show_in_menu => TRUE
  283.                 *__config.show_in_admin_bar => TRUE
  284.                 *__config.menu_position => 5
  285.                 *__config.menu_icon => NULL
  286.                 *__config.hierarchical => FALSE
  287.                 *__config.register_meta_box_cb => NULL
  288.                 *__config.has_archive => FALSE
  289.                 *__config.permalink_epmask => 0
  290.                 *__config.rewrite => TRUE
  291.             Trigger tri4m\Wp\Theme\Wp::registerPostType [register_post_type([member][
  292.                 supports.0 => title
  293.                 supports.1 => editor
  294.                 supports.2 => author
  295.                 supports.3 => thumbnail
  296.                 supports.4 => excerpt
  297.                 supports.5 => trackbacks
  298.                 supports.6 => custom-fields
  299.                 supports.7 => comments
  300.                 supports.8 => page-attributes
  301.                 labels.name => Members
  302.                 labels.singluar_name => Member
  303.                 labels.menu_name => My Members
  304.                 labels.all_items => All Members
  305.                 labels.add_new => Add New
  306.                 labels.add_new_item => Add New Member
  307.                 labels.edit_item => Edit Member
  308.                 labels.new_item => New Member
  309.                 labels.view_item => View Member
  310.                 labels.search_items => Search Members
  311.                 labels.not_found => No Members found.
  312.                 labels.not_found_in_trash => No Members found in trash.
  313.                 labels.parent_item_colon => Parent Member
  314.                 description => Holds our Members and Member specific data
  315.                 public => FALSE
  316.                 exclude_from_search => FALSE
  317.                 publicly_queryable => TRUE
  318.                 show_ui => TRUE
  319.                 show_in_nav_menus => TRUE
  320.                 show_in_menu => TRUE
  321.                 show_in_admin_bar => TRUE
  322.                 menu_position => 5
  323.                 menu_icon => NULL
  324.                 hierarchical => FALSE
  325.                 register_meta_box_cb => NULL
  326.                 has_archive => FALSE
  327.                 permalink_epmask => 0
  328.                 rewrite => TRUE])].
  329.             Exec Action page[init]: Closure::function()
  330.             {
  331.                 try
  332.                 {
  333.                     Wp::registerNavMenus
  334.                     ([
  335.                         'header-menu' => __('Header Menu', 'response')
  336.                     ]);
  337.                 }
  338.                 catch(\Exception $E)
  339.                 {
  340.                     Theme::e('Error in HOOK::ACTION_INIT', $E);
  341.                 }
  342.             }
  343.             Trigger tri4m\Wp\Theme\Wp::registerNavMenus [register_nav_menus([
  344.                 header-menu => Header Menu])].
  345.     tri4m\Wp\Theme\Application::activate: en_US
  346.             Trigger tri4m\Wp\Theme\Wp::flushRewriteRules [flush_rewrite_rules([])].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement